Re: resizing JPEGs (with Img and photo image)



spooky...@xxxxxxx wrote:
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.

.



Relevant Pages

  • Re: What say the choppa crowd
    ... pretty sure I will eventually get the PC III map to where I ... The problem with the PCIII is that it is a no loop system. ... insignificant amount fuel. ... Bikes have ...
    (rec.motorcycles)
  • Re: Software to create an E-book?
    ... > There is no way of telling that in an HTML document. ... > font, the amount of zoom, etc. ... How many lines can you fit on that screen? ... doing a book HTML, I want as much of the content on a single ...
    (comp.os.linux.misc)
  • Re: Queen Scout Expeditions
    ... A brief look at the map suggests that a large amount of it is, ... An even briefer look at a map of Snowdonia or the Lake District will tell ... Same applies to Snowdonia and the Lakes, but there you're also likely to hit ...
    (uk.rec.scouting)
  • Re: Cant run the query I need... table setup wrong?
    ... spend 5x the amount of time trying to fit the square peg into the round ... > setup now, that I really can't go back and start from scratch. ...
    (microsoft.public.access.queries)
  • Re: K-T Impact Hypothesis: "Teach the Controversy"?
    ... presented with a huge amount of geological and fossil evidence. ... But it didn't fit. ... The notion that continents were as mobile ...
    (talk.origins)