LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   resizing series of images (convert) (https://www.linuxquestions.org/questions/linux-general-1/resizing-series-of-images-convert-61193/)

wawosz 05-22-2003 11:26 AM

resizing series of images (convert)
 
Hello All,

I want to use "convert" to resize a series of images in one folder.
When I am running: convert -resize 800x600 *.jpg
only last jpeg-picture is resized. How to resize a series of images?

I don't want to resize all pictures manually.
Any ideas,

Thanks,
Wawosz

acid_kewpie 05-22-2003 11:32 AM

for i in *.jpg; do convert -blah $i ; done

peasey...

optic64 04-15-2008 08:46 PM

I switch my mom from xp to ubuntu and I am a linux noobie. I know for xp you can get powertoys for it and then right click on a image to resize it.

Is there away to add this convert command in the right click dialog box?

She kind of a computer noobie all around and less programs and steps to mess with will make her happy.

I want her linux experience to be the best. Tired of reloading computers, fixing spyware machines, and recommending lots of $$$ on cheap working security software.

optic64 04-15-2008 11:57 PM

Got it

Ubuntu 7.10-The Gutsy Gibbon

install imagemagick
sudo apt-get install imagemagick

sudo apt-get install nautilus-actions
or
add/remove
(Note: make sure dropbox Show All available applications)
find Nautilus Action Configuration check click apply
------------------------------------------------------
after install goto System->Preferences->Nautilus Action Configuration

Click Add
-------------------------------
ON Menu Item & Action Tab
Label: Image Resizer (Thats what I named mine)
Tooltip: This resizes Image (My tooltip message)
Icon: (if you need one I might make one later)
Path:/usr/bin/convert
Parameters:%M -resize 50%% %d/resize%f

(Note: %M is for full path and file. -resize is a convert option, 50%% 50% is half size the extra % is for adding a % to the command, %d is for the path, / is needed, resize%f is to name the resized file resize+old=filename)
---------------------------------------------
ON Conditions Tab
filenames: *jpg;*.JPG;*.jpeg;*.JPEG
(I added these the convert does more so its flexable if needed )

Mimetypes: image/*
---------------------------------
Theres other stuff for multiple files but haven't expermented with it so check it out.

Thank You wawosz, acid_kewpie for starting this post and giving me knowledge of convert

Thank You http://www.techthrob.com/tech/actionconfig.php
for the knowledge of Nautilus Actions

optic64 04-16-2008 09:07 PM

forgot to mention restart if right click on jpg file don't show resize image after installing and configuring.


All times are GMT -5. The time now is 03:31 AM.