Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Results 1 to 12 of 12

Thread: Simple photo resize

  1. #1
    Senior Member Land Locked's Avatar
    Join Date
    Sep 2007
    Location
    Johannesburg, Sarf Efrika
    Posts
    179

    Default Simple photo resize

    Hi, looking for a simple way to resize photo's in Linux Mint.

    Thanks

  2. #2
    Super Grandmaster Nod's Avatar
    Join Date
    Jul 2005
    Location
    Nürnberg
    Posts
    6,737

    Default

    Code:
    for image in *.jpg
    do 
          convert $image -resize 800x600 800x600-$image
    done
    Writes a new file.

    Could also use:
    Code:
    mogrify -resize 1280x960 *.jpeg
    Which will overwrite the original image.

    Instead of using the resolution (eg. 1280x960), you can use 30% or 75%.
    "convert" and "mogrify" is part of the imagemagick program.
    Last edited by Nod; 27-11-2009 at 03:11 PM.

  3. #3
    Grandmaster
    Join Date
    Apr 2005
    Location
    a paper bag in a septic tank
    Posts
    1,284

    Default

    use gimp.

  4. #4

    Default

    Cli, mogrify like mentioned.
    Gui, gimp like mentioned.

    "The fool hath said in his heart, There is no God."

  5. #5
    Senior Member Land Locked's Avatar
    Join Date
    Sep 2007
    Location
    Johannesburg, Sarf Efrika
    Posts
    179

    Default

    Thanks guys.

    Gimp is cumbersome and takes a while.

    I'm no Cli genius, but I think I need to try that.( I lie, I'm terrified of the command line)

    One more question, I vaguely recall there being a way to do batches of images by Cli. Does my memory fail?

  6. #6

    Default

    You can install gThumb image viewer, it does basics such as resize, crop etc... and can be used as default image viewer (duh).

  7. #7
    Senior Member Land Locked's Avatar
    Join Date
    Sep 2007
    Location
    Johannesburg, Sarf Efrika
    Posts
    179

    Default

    Thanks to everybody who has replied, really appreciate the input.

  8. #8

    Default

    Here's a quick rundown.

    cd to the directory where the photos are.

    If you want to resize a batch of photos that are all odd sizes, but you want them all to have the same width:
    mogrify -resize 640 *.jpg

    This will resize all the photos in that dir to width 640.

    If you want to force a resize and not keep the aspect ratio:
    mogrify -resize 640×480! *.jpg

    This will ignore aspect ration and resize all photos in that dir to 640x480.

    Replace *.jpg with whatever extension your photos have, remembering that Linux is case sensitive. Most digital cameras safes the files as *.JPG or *.JPEG

    "The fool hath said in his heart, There is no God."

  9. #9
    Senior Member Land Locked's Avatar
    Join Date
    Sep 2007
    Location
    Johannesburg, Sarf Efrika
    Posts
    179

    Default

    Thanks for all the help guys.

  10. #10

    Default

    just use kpaint or something

  11. #11
    Senior Member Land Locked's Avatar
    Join Date
    Sep 2007
    Location
    Johannesburg, Sarf Efrika
    Posts
    179

    Default

    gThumb is doing it quite well and as a bonus makes it easy to get the photo's onto the computer too.

  12. #12

    Default

    For something that works like the WinXP PowerToy, see http://ubuntu-tutorials.com/2007/09/...thin-nautilus/
    which lets you select pictures you want to resize, right clich ans set resize options.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •