Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 10 Jul 2020, 18:52
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
How to batch-resize images with Imagemagic on a Linux-box?
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
sayhello_to_the_world

Joined: 24 Dec 2012
Posts: 77

PostPosted: Sun 01 Feb 2015, 12:58    Post subject:  How to batch-resize images with Imagemagic on a Linux-box?  

hello dear puppy-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
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13646
Location: Arizona USA

PostPosted: Sun 01 Feb 2015, 13:36    Post subject:  

You're not using Puppy Linux for this, are you?
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Sun 01 Feb 2015, 14:57    Post subject:  

sayhello_to_the_world wrote:
Code:
mogrify -resize "460x306>" -quality 75 *.jpg

Code:
-rw-r--r-- 1 martin users  3537095 30. Sep 2011  DSC_0402.JPG

jpgJPG
Linux is case-sensitive.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Fossil


Joined: 13 Dec 2005
Posts: 1172
Location: Gloucestershire, UK.

PostPosted: Sun 01 Feb 2015, 15:08    Post subject:  

'If' you were using Puppy Linux you could try here: http://murga-linux.com/puppy/viewtopic.php?t=81819
Or, search the Graphics sub-forum for other available programs. Or, download XNview with batch-resizing built in.
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 8421
Location: World_Hub

PostPosted: Sun 01 Feb 2015, 15:14    Post subject:  

IM's the best, case sensitive's the answer. Like I've said, most peeps try once, fail and quit. ZERO tenacity.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0425s ][ Queries: 11 (0.0119s) ][ GZIP on ]