topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 5:01 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: change image dimensions  (Read 3557 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
change image dimensions
« on: December 03, 2011, 04:22 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!

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: change image dimensions
« Reply #1 on: December 04, 2011, 01:17 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/

JavaJones

  • Review 2.0 Designer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,739
    • View Profile
    • Donate to Member
Re: change image dimensions
« Reply #2 on: December 05, 2011, 12:03 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

cmpm

  • Charter Member
  • Joined in 2006
  • ***
  • default avatar
  • Posts: 2,026
    • View Profile
    • Donate to Member
Re: change image dimensions
« Reply #3 on: December 05, 2011, 08:27 AM »
This one may be too simple, but it does have custom settings.
And claims to keep 'a proper aspect ratio'.
From their site.
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...izingTechniques.html
http://www.freesizer.com/