testlist <- list(im = c(2.79236147670686e-196, 1.26379330258632e+187, 1.42068194191949e+49, 2.58035513749295e-206, 3.02005550013883e-260, -9.9122759758109e-57, -1.64035674249925e-118, 1.05390745649826e+182, 8.05606797801028e-38, -3.84354256622327e+136, 2.36081589563427e-100, 3.01724164497879e-124, 9.57301250646523e+229, -7.99809293195875e-243, 3.06030363511005e-110, 3.27695505950329e-93, -2.10373847983487e+36, -5.29514598795293e-20, 9.81127061830259e+30, -3403.88378037291, -364839.827923978, -8.45393891276032e+179, -4.53552102535884e+269, 3.95634524110619e-268, 8.72400335545415e-16, 7.84869121851595e-78, 7.10345658387002e+183, 6.87082786328043e-155, -6.90558603588891e+64, 1.10258217566985e+184, 1.69525406917008e-11, -3.2200871813294e+207, 1.87678984938135e-179, 7.6026610522376e-52, -3.18940703770689e-67, -4.07827651100228e-125, 1.24680700116839e+68, -2.75820195448307e-295, 5.67556876054047e+224, -3.54964583317729e-194, 1.60096399571375e-198, 4.16403222004086e-243, 1.67598413281535e+109, -2.35867586410091e+145, 4.45587038472864e-209, 3.27437460602372e+270, 1.99018496701793e+90, 7.3743152627684e-288, 3.21584708469381e+236, -4.62773240474319e+76, 50002022.6447766, -6.90295806583465e+295, -6.94996635625781e+150, -6.24894289801879e+226, -5.38464246327419e+306, 9.22390348570428e-177, -5.22812133068865e-276)) result <- do.call(imager::RGBtoLab,testlist) str(result)