Find the answer to your Linux question:
Results 1 to 9 of 9
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to resize images automatically - on linux !? best practice


    hallo

    how can i resize images i have.

    at the moment they do have the following size

    4608 x 3072 pixel

    how to limit the size


    how can i do this for 30 images - on a single step"!?

    is this possible.

    which tool can i use?


    batch programme on linux
    digicam
    gimp


    plz advice

    greetings
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  2. #2
    Linux User zenwalker's Avatar
    Join Date
    Feb 2010
    Location
    Inland Empire
    Posts
    370
    Just a place to start -- Batch Resize Images Using ImageMagick
    then, create a script?
    "What you think about me is none of my business"
    _______________________________________________| Slacko | TharPup64 | whatever

  3. #3
    Linux Newbie arespi's Avatar
    Join Date
    May 2011
    Location
    Monterrey , Mexico
    Posts
    232
    Hi

    I just had to do the same to a bunch of pictures , did a google search and found this:
    1. first, install imagemagick if not already installed.
    2. put all the pictures you want to reduce in a folder.
    3. from the terminal console cd to folder with the pictures.
    4. type the command:


    Code:
    mogrify -resize "240x240>" -quality 75 *.jpg
    In this case I reduced the pictures to 240x240 pixels

  4. $spacer_open
    $spacer_close
  5. #4
    hello dear zenwalker and arespi

    many many thanks for the great hints - you saved my day


    greetings
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  6. #5
    by the way - if i want to kee the size - and formate


    4608 x 3072 pixel

    then in need to get anoter ratio - in the reduction.... don ´t i ?
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  7. #6
    hello dear joomla-experts


    i want to resize images that i have.
    at the moment they do have the following size

    4608 x 3072 pixel

    how to limit the size:

    how can i do this 50 images - on a single step"!?

    Is this possible. which tool can i use?


    -batch programme on linux
    -digicam
    -gimp


    there are several ways to do this for a bunch of pictures:


    first, i installed imagemagick on my linux box .
    put all the pictures we want to reduce in a folder.
    from the terminal console we cd to folder with the pictures.
    then type the command:




    Code:
    mogrify -resize "460x306>" -quality 75 *.jpg
    In this case I reduced the pictures to 460x306 pixels

    see the results

    Code:
                                                                                                  
    martin@linux-70ce:~/Bilder/books_1/sample_1/rework> mogrify -resize "460x306>" -quality 75 *.jpg
    mogrify: unable to open image `*.jpg': Datei oder Verzeichnis nicht gefunden @ error/blob.c/OpenBlob/2643.
    martin@linux-70ce:~/Bilder/books_1/sample_1/rework>
    see the data that resides in the folder:
    Code:
    -rw-r--r-- 1 martin users  3537095 30. Sep 2011  DSC_0402.JPG
    -rw-r--r-- 1 martin users  3406810 30. Sep 2011  DSC_0405.JPG
    -rw-r--r-- 1 martin users  3400306 30. Sep 2011  DSC_0412.JPG
    -rw-r--r-- 1 martin users  3295822 30. Sep 2011  DSC_0413.JPG
    -rw-r--r-- 1 martin users  3356603 30. Sep 2011  DSC_0414.JPG
    -rw-r--r-- 1 martin users  3716554 30. Sep 2011  DSC_0415.JPG
    -rw-r--r-- 1 martin users  3186194 30. Sep 2011  DSC_0416.JPG
    -rw-r--r-- 1 martin users  3959131 30. Sep 2011  DSC_0417.JPG
    -rw-r--r-- 1 martin users  3534784 30. Sep 2011  DSC_0418.JPG
    -rw-r--r-- 1 martin users  3517244 30. Sep 2011  DSC_0419.JPG
    -rw-r--r-- 1 martin users  3766772 30. Sep 2011  DSC_0420.JPG
    -rw-r--r-- 1 martin users  3576426 30. Sep 2011  DSC_0421.JPG
    -rw-r--r-- 1 martin users  3379235 30. Sep 2011  -- 1 martin users 41398478 28. Jan 21:59 re_DSC_0386.xcf
    any idea why it fails
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  8. #7
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    Use *.JPG instead of *.jpg as Linux is case sensitive
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  9. #8
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    also moved
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  10. #9
    thanks i was also looking for a way to resize the images for my website.

Posting Permissions

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