Problem setting -sampling-factor
Posted: 2011-03-29T16:31:03-07:00
I am having no luck setting the -sampling-factor for converting a tif to jpeg using PHP.
Here is my command:
"convert -sampling-factor 1x1 ".$exfilename." ".$filename;
Here is the output:
convert: Improper JPEG sampling factors 2,2
Apparently should be 1,1.. `JPEGPreDecode' @ warning/tiff.c/TIFFWarnings/706.
convert: Cannot honour JPEG sampling factors that exceed those specified.. `JPEGPreDecode' @ error/tiff.c/TIFFErrors/496.
I have tried all kinds of variations
-sampling-factor 1:1
-sampling-factor 1,1
-sampling-factor 1x1
Here is my command:
"convert -sampling-factor 1x1 ".$exfilename." ".$filename;
Here is the output:
convert: Improper JPEG sampling factors 2,2
Apparently should be 1,1.. `JPEGPreDecode' @ warning/tiff.c/TIFFWarnings/706.
convert: Cannot honour JPEG sampling factors that exceed those specified.. `JPEGPreDecode' @ error/tiff.c/TIFFErrors/496.
I have tried all kinds of variations
-sampling-factor 1:1
-sampling-factor 1,1
-sampling-factor 1x1