[magick-users] Trouble converting 300dpi jpeg to 72dpi jpeg with same size

Michał Skalski mskalski at enigma.com.pl
Tue Nov 13 03:33:31 PST 2007


Try -density option instead of -resample

Michał

Nicolas Dhomont pisze:
> Hello
>
>
> I'm trying to convert 300dpi CYMK jpeg to 72dpi RGB jpeg
>
> I already manage to convert from CYMK to RGB by doing the following :
>
> convert fromFile -antialias -colorspace RGB toFile
>
> I'm now trying to convert from 300 dpi to 72dpi with the following :
>
> convert -units PixelsPerInch fromFile -colorspace RGB -antialias 
> -resample 72x72 toFile
>
> Size of toFile is reduced by a 4,16 ratio (= 300 / 72) but still in 
> 300 dpi. (It means that if fromFile is 2.66inch wide, toFile is 
> 2.08inch wide for exemple). But I want exactly the opposite : a file 
> in 72 dpi with same size.
> I've also played with the -density option unsuccessfully.
>
> As converting is quite simple with photoshop, I guess convert can do 
> same but I can't find out how.
>
>
>
> Any help would be highly appreciated
>
> Nicolas
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>


More information about the Magick-users mailing list