Re: "Intelligent" resize

Al Bogner <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
Am Freitag, 20. November 2009 22:11:44 schrieben Sie:
> Am Freitag, 20. November 2009 20:14:12 schrieb Fred Weinhaus:
> 
> Hi Fred,
> 
> > convert image -resize 1800x1800 resultimage
> >
> > will always make the larger side 1800 and the other (smaller side)
> > stay in proportion
> 
> I tried this and it _enlarges_ the image:
> 
> for INP in `find "$ORIGINALPATH" -type f \
> -regex ".*\(jpg\|jpeg\|png\|tif\|tiff\|gif\)" | sort`; do
> 	NEWFILE=`echo "$INP" | sed 's/originals/gallery/'`
> 	NEWFILE="${NEWFILE%.*}"".jpg"
> 	NEWDIR=`dirname "$NEWFILE"`
> 	mkdir -p "$NEWDIR"
> 	echo "creatIng "`basename "$NEWFILE"`
> 	convert "$INP" -resize 1800x1800 "$NEWFILE"
> done

It looks like it must be:

convert "$INP" -resize "1800x1800>" "$NEWFILE"

Al
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.