I often get a little confused about image handling in Plucker
and want to make sure I have it straight:

There are two image sizes:
- the "inline" size (--maxwidth, --maxheight)
- the "alternate" size (--alt-maxwidth, --alt-maxheight) where
  you can click on an inline image to see it bigger

The maximum image size in bytes in 64K (or is it a little
smaller), which makes the maximum image sizes (for square
images) the following:

 1bpp  724x724 (echo '2 16^**vp' | dc)
 2bpp  512x512 (echo '2 16^4*vp' | dc)
 4bpp  362x362 (echo '2 16^2*vp' | dc)
 8bpp  256x256 (echo '2 16^vp' | dc)
16bpp  181x181 (echo '2 16^2/vp' | dc)

I can specify how big I want my images to be using the command
line options.

Hopefully I have that right.

Given that, I have an enhancement request (unless it is already
possible).

What I'd rather do is let Plucker figure out the maximum sizes
based on the the 64K limit and the aspect ratio of the image it
is currently looking at.

For inline images, I'd want it to scale down (but not scale up)
to fit a maximum of 160 (or 320 for hires) wide (minus the
scrollbar) with the height calculated from the aspect ratio. IF
that's bigger than the 64K limit, scale down to fit in 64K.

For alternate images, I'd want it to scale it down (but not up)
to fit in the 64K limit and keep the aspect ratio.

So if I'm working in 4bb on a hires device and my document had
one image that was 640x480 and another that was 200x800, I want
Plucker to scale both of them to fit into the 64K limit. (I
think that's 416x312 for the first one and 181x724 for the
second.)

The inline images would be 320x240 and 181x724. The alternate
images would be 416x312 and 181x724 (doesn't need an alternate
image).

_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to