user iconpixelman on July 10th 2007
1348 views

topic iconResize Options

DPI and Size

Just start using PhotoResize to modify images could someone please tell me what command line option's are needed to set a dpi of 300 and reduce/enlarge the size accordingly as not to distort the dpi and size relationship. I need to set a 300dpi and have the original size change in proportion to the change in the dpi.

user iconVlasta on July 10th 2007 0

You should rename the tool to PhotoResizeD300.exe or use -d300 switch. This will resample the image while attempting to leave the original physical size unchanged.

user iconpixelman on July 10th 2007 0

I understand that thanks Vlasta that would set a dpi of 300 but at the same time increase the size, but thats not what I am trying to achieve here.

When a dpi is reduced the image size increase and when the dpi is enlarged the original size reduces and so maintaining the relationship between size and dpi as in the original. This would then work as it does in Photoshop image sizing.

e,g, An original image with 72 dpi having a size of 500 x 500 pixels would if the dpi was set to 300 dpi give an image size of 120 x 120 pixels. On the other hand if the original 72 dpi was reduced to 36 dpi the size final size would be 1000 x 1000 pixels

user iconVlasta on July 11th 2007 0

I am afraid this is impossible with the current version.

user iconpixelman on July 11th 2007 0

Thanks Vlasta

Look forward to the next update as I think the software is a clever approach.

For the next update.

new width (or depth) = org width(or depth) in pixels * org dpi / new dpi

Many thanks

user icon