Re: resizing JPEGs (with Img and photo image)
- From: pwelten@xxxxxxxxx
- Date: Mon, 30 Jul 2007 13:16:10 +0200
Donal K. Fellows schreef:
spooky...@xxxxxxx wrote:Also have a look at http://wiki.tcl.tk/11924 which patches the photo command.2) The amount that I need to resize the image is not an integral
amount, it's a percentage (or, better still, a specific size
in pixels). Specifically (for the Gulf close-up), the image
needs to be resized from 720x480 (1.5:1) to 1324x980 (1.35:1)
to best fit with the map. Yeah, I know...but it actually looks
ok.
I've tried using -zoom ... but it'll only accept integral amounts, and
they're not percentages. I've tried specifying the image size, but I
just end up with multiple copies of the image. I've tried -zoom
combined with image size and -shrink ... but it doesn't work.
Ah yes, the lameness of the image resizing code (and as the maintainer
of that code I can say that it is lame with absolute certainty!) While
a combination of -zoom and -subsample would work, *don't do that*.
It's horrible. Instead, you need a resizing engine. A good place to
start looking is http://wiki.tcl.tk/10520 but I suspect you may be
better off going to http://wiki.tcl.tk/9775 (i.e. TclMagick) which is
far more capable (and faster) than scripted versions.
Donal.
Peter
.
- References:
- resizing JPEGs (with Img and photo image)
- From: spooky130
- Re: resizing JPEGs (with Img and photo image)
- From: Donal K. Fellows
- resizing JPEGs (with Img and photo image)
- Prev by Date: Re: resizing JPEGs (with Img and photo image)
- Next by Date: Re: Win32 serial port access (don't forget flow control!)
- Previous by thread: Re: resizing JPEGs (with Img and photo image)
- Next by thread: Re: resizing JPEGs (with Img and photo image)
- Index(es):
Relevant Pages
|