Re: resizing JPEGs (with Img and photo image)



Donal K. Fellows schreef:
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.

Also have a look at http://wiki.tcl.tk/11924 which patches the photo command.

Peter
.



Relevant Pages

  • 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: 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)
  • RE: Dif size text with Formulas
    ... but it will still vary the size of text depending on the amount of ... Gary''s Student - gsnu200833 ... Having to expand the width of "E" to allow the formula size to fit ...
    (microsoft.public.excel.misc)
  • Re: frivolous question
    ... muser wrote: ... > What is the most amount of data any one point in quantum space can ... For example could someone fit the entire content of a dictionary ...
    (sci.physics)