Hello Chris,
Thanks for your help, but I think my main problem was not look at the
parser output, hehehe
I was trying to pluck some docs I wrote in XML-DocBook and later convert
to html.
I got this messages from the parser:
------------------------------------------------------------------------
Processing file:/home/drudi/catho-doc2/book/images/sistema-doc.jpg...
Retrieved ok.
Error: Unknown error parsing document
file:/home/drudi/catho-doc2/book/images/sistema-doc.jpg:
Traceback (most recent call last):
File "/usr/lib/python2.1/site-packages/PyPlucker/Parser.py", line 45,
in generic_parser
return parsed.get_plucker_doc ()
File "/usr/lib/python2.1/site-packages/PyPlucker/ImageParser.py", line
192, in get_plucker_doc
(width, height, depth, section), limits, scaling_factor =
self.calculate_desired_size()
File "/usr/lib/python2.1/site-packages/PyPlucker/ImageParser.py", line
126, in calculate_desired_size
width = int(w)
ValueError: invalid literal for int(): 80ems
Parsing failed.
--------------------------------------------------------------------------
I think the problem was the parameter WIDTH="80ems" in IMG tag.
I edited the HTML source and removed this parameter. The images are
perfect now!!
Thank's
--
/*------------------------------------------------------------------*
* Marcelo Drudi Miranda | Microelectronics Engineering Student *
* Debian GNU/Linux User | Linux Registered User #177399 *
*------------------------------------------------------------------*/
On Sat, Jun 07, 2003 at 07:28:44PM -0500, Chris Hawks wrote:
> ---Reply to mail from Marcelo Drudi Miranda about Images and alternate images
>
> > 1. Is there a way to automaticaly generate the alternate image, without
> > having to edit the html source?
> >
> > 2. How do I get images embeded in the documment?
> >
> >
> > I'm using plucker v1.2, and in my .pluckerrc I have this options set:
> >
> > --------------------
> > bpp = 1
> >
> > maxwidth = 150
> > maxheight = 250
> > alt_maxwidth = 800
> > alt_maxheight = 800
> >
> > image_parser = pil2
> > --------------------
> >
> > Am I missing something?
>
> Marcelo:
>
> It sounds like the parser is not finding the options. The .pluckerrc
> file should be in your HOME directory and these entries must be in the
> 'default' section of .pluckerrc.
>
> i.e.:
>
> [DEFAULT]
> bpp = 1
>
> maxwidth = 150
> maxheight = 250
> alt_maxwidth = 800
> alt_maxheight = 800
>
> image_parser = pil2
>
> They will then be used for all plucking. maxwidth/maxheight control
> the size of embedded inamges and alt_maxwidth/alt_maxheight control the
> size of the alternate images.
>
> ---End reply
>
> Christopher R. Hawks
> HAWKSoft
> -------------------------------------------------------------------------
> "Only two things are infinite, the universe and human stupidity, and I'm
> not sure about the former."
> -- Albert Einstein
>
>
>
>
>
> _______________________________________________
> plucker-list mailing list
> [EMAIL PROTECTED]
> http://lists.rubberchicken.org/mailman/listinfo/plucker-list
_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list