Page 1 of 1

300 dpi TIF-> 72 dpi JPG in one line (Windows)

Posted: 2011-07-27T15:28:27-07:00
by ipgimg
Hi,

I'm trying to convert a 300 dpi TIF file to a 72 dpi JPG (on Windows).

If I do

Code: Select all

convert  in.tif  -density 72x72  out.tif
I get the TIF file with the same pixel dimensions but at 72 dpi (almost what I need). If I do

Code: Select all

convert  in.tif  -density 72x72  out.jpg
I get the JPG file with the same pixel dimensions but at 300 dpi

What is the command to do both, so that I get a JPG with the same pixel dimensions as the input file and 72 dpi resolution? Seems like it should be so simple but I'm struggling.

If I use resample I get an image still at 300 dpi but with smaller dimensions instead of an image with the same dimensions but different dpi. If I take the 72 dpi TIF and convert out.tif out.jpg afterwards it goes back to 300 dpi.

Thanks

Re: 300 dpi TIF-> 72 dpi JPG in one line (Windows)

Posted: 2011-07-27T19:09:42-07:00
by anthony
How did you test that... photoshop...

You will need to remove the Photoshop specific profile from the image. conversion from TIFF to JPEG would preserve that profile, and photoshop will see and use it instead of the standard JPEG resoultion settings that IM modified.

See TIFF, sction on "Tiff and Density (resolution) in photoshop..."
http://www.imagemagick.org/Usage/formats/#tiff

Re: 300 dpi TIF-> 72 dpi JPG in one line (Windows)

Posted: 2011-07-28T07:43:05-07:00
by ipgimg
Thanks, I'm not using Photoshop at all but that is undoubtedly where the images originally come from. I used -strip to take out the profiles and got the 72 dpi JPG with

Code: Select all

convert in.tif  -strip -density 72 out.jpg
Is there a way to remove just the Photoshop profile/information? Or could I use two -profile commands to assume input profile and convert to an output profile?