Re: GIMP can not do it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/3/14 elk dolk <elkdolk@xxxxxxxxx>:
> Hi all,
>
> I have some 600x450 pixel photos and want to reduce their size  to 60K and
> keep the aspect ratio, GIMP can't do it , anyone know of a Linux photo
> manipulation SW for batch processing photos?
>
>

I do not know of a way to reduce with the goal of changing the file
size.  I can tell you how to batch convert files to a particular
resolution.  Save this batch program and run to change images to 600
pixels wide jpeg quality 85.  It will take all files you list on the
command line.

#!/bin/bash

for input in $@
do
  base=`echo $input | sed 's/\(.*\)\..*$/\1/'`
  ##  echo "SUF" $SUF "base" $base
  suffix="600.jpg"
  /usr/bin/convert $input -resize 600x -quality 85 $base$suffix

done




-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux