A feature request for Picture Resizer - RealWorld forums

Log-in or register.

A feature request for Picture Resizer

"Resize by total pixel amount"
neokoo
on August 15th 2006

Hi!

I found Picture Resizer to be one of the best photo resizing tools, even without a GUI. There is however one feature that I'd like to have in it: "Resize by total pixel amount", which would resize the image to user-specified pixel amount while retaining its aspect ratio. So far I haven't seen it in any resizing software, but I it would be very useful to me (as well as other people, I guess).

The idea came to me while I was working on my web-based photo album. When resizing by maximum dimensions, the closer the image is to square-shaped the bigger it gets compared to wide or tall images - so the images' dimensions and filesize vary a lot depending on the aspect ratio. I wanted to downsize the images so they would be of roughly equal total size, so I spent a few hours thinking about it and figured out a way to do it:

1. multiply original width and height of the image to get total pixel amount
2. specify target pixel amount
3. calculate square root of original pixel amount
4. calculate square root of target pixel amount
5. divide sqrt of original pixel amount by sqrt of target pixel amount...
6 ..to get a ratio by which original image width and height should be divided.

I tested it out in a quick Javascript/DHTML hack, and it works. I can send you the .htm, if you're interested.

I'd be very thankful if you could add this feature to Picture Resizer.

Vlasta
on August 15th 2006

Thanks for the feature suggestion, it is always appreciated. It seems like a good idea and it will probably be implemented in the next version of the tool.

Until then I would suggest to use the resizing to specified filesize. While it is not exactly the same, I guess it will solve your problem. Be aware that this feature is marked experimental and it is slower than the other methods.

neokoo
on August 15th 2006

Thank you, I'll be waiting for the next version then!

Page views: 2012       Posts: 3      
Vista & Win 7 icons
What about ICL files?
Select background