"rmg2768" == [EMAIL PROTECTED] <[EMAIL PROTECTED]> writes:
>>convert_program_parameter= -geometry <%maxwidth%x%maxheight% -sharpen 10x10 %input%
>bmp:%output%
rmg2768> That's what I tried before, but it didn't work. (I'm assuming
rmg2768> the '<' is a typo, but I tried it also anyway w/ same
rmg2768> results). The debug output showed that the Python routines
rmg2768> evaluated "%maxwidth%x%maxheight%" to be "0x0", and I looked
rmg2768> at the code in ImageParser.py - it looks like internal
rmg2768> variables used for the maxwidth and maxheight substitutions
rmg2768> are defined only _after_ running the convert program, taken
Ups, you found a Bug. But since i switch to PIL (Python Image Lybary
soon) i do not fix that. (PIL handle also the transparency right if
the transparent color are set to black, do not crash on some images
and is faster and smaller)
rmg2768> from the resulting image size which comes from the image
rmg2768> header of the output of convert.exe (whi ch seems to run only
rmg2768> once). Then, the image is then scaled appropriately using
rmg2768> bmp2tbmp (which runs in two passes, for either preview or
rmg2768> "alt"/full size using two different substitutions for
Preview and full size image are two sepperate documents. So if the
Image convert code return with the info that the image are scaled down
and you specify to use large images, the image converter are called
again with new max_width/height values.
A Image Convert run are:
- Convert the GIF, JPG, PNG to BMP
- Convert the BMP to a TBmp (more than one time if you specify
guess_tbmp_size=false)
rmg2768> "maxwidth" and "maxheight"). Am I reading the code correctly?
I guess yes.
cu,
Dirk
--
Permanent URLs to the latest Version (1.1.11SR1) of the Plucker Windows installer
- For the Webpage: http://www.dirk-heiser.de/plucker
- Direct Download: http://www.dirk-heiser.de/plucker/plucker.exe [2.94MB]