Welcome Guest.   Make a donation to an author on the site August 29, 2014, 05:11:02 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: change image dimensions  (Read 1109 times)
kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« on: December 03, 2011, 04:22:31 PM »

hello

I have a rectangular imagewith specific ratio, dpi, x dimension and y dimension

I want to preserve its dpi and ratio, but give its y dimension another value (which will alter x dimension proportionally, ofcourse)

how can I do this?

thanks!
Logged
ewemoa
Honorary Member
**
Posts: 2,413



View Profile Give some DonationCredits to this forum member
« Reply #1 on: December 04, 2011, 01:17:44 AM »

I'm not sure about preserving DPI, but if it's scaling while preserving aspect ratio, one thing I might use is the GIMP's scale image feature:

  http://www.simplehelp.net/2007/08/13/how-to-resize-images-using-the-gimp/
Logged
JavaJones
Review 2.0 Designer
Charter Member
***
Posts: 2,536



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: December 05, 2011, 12:03:34 AM »

This is a very common and simple image manipulation problem solved by most image editors, as far as I'm aware. So the better question is do you need to automate it, do it programatically, or batch-process, or something else complicated? Otherwise many applications should do what you want with a simple Resize function. For example XnView handles this easily. Just open the resize dialog, make sure it's set to preserve aspect ratio and *not* preserve print size (which would change DPI as you changed resolution), and then enter your new Y value, the X will adjust automatically. Note also that XnView has a batch processing function and I think there is even a commandline version and/or a library that you could access in code to do things programatically.

- Oshyan
Logged

The New Adventures of Oshyan Greene - A life in pictures...
cmpm
Charter Member
***
Posts: 2,025

View Profile Give some DonationCredits to this forum member
« Reply #3 on: December 05, 2011, 08:27:38 AM »

This one may be too simple, but it does have custom settings.
And claims to keep 'a proper aspect ratio'.
From their site.
Quote
FreeSizer will always use a proper aspect ratio, these values are not absolute. FreeSizer will automatically calculate the proper aspect ratio and use the values that are nearest to your desired image size.
http://freesizer.com/help...edResizingTechniques.html
http://www.freesizer.com/
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.027s | Server load: 0.19 ]