Images: A feature request for Picture ...
Images: A feature request for Picture ...
RealWorld Graphics logo    
Not logged in.  
IndexSoftwareGraphicsArticlesDiscussMore...

Login/Register
Forum List
Announcements
Icons and Cursors
Images
3D graphics
Win32 C/C++/VB
.NET C#/C++/VB
Tips and tricks
General discussion
User List
Search this site using Google

Free newsletter
Your email address:

Select background

Back to forum Images

A feature request for Picture Resizer

"Resize by total pixel amount"

2006-08-15Author: neokoo
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.


2006-08-15Author: Vlasta
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.

2006-08-15Author: neokoo
Thank you, I'll be waiting for the next version then!


Post Reply

Please login or register before posting.

Message text:


Back to forum Images

Copyright © 2005-2007 RealWorld Graphics. Contact: info@rw-designer.com.