Re: Image Size Issue
On 2 Jun 2004 at 14:51, Chris Bowditch wrote: One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris very true i didn't specify width and height because the images that are being attached to the pdf have variable dimensions. hmm so that's the behaviour of FOP. i actually tried changing the page size to 40x40inches and still the image did not display... as with regards to the command line warnings... i don't see them if there are any coz i just access the xml file via browser say i resulted to 1234.xml file i access it via http://FQDN:8080/cocoon/xmlfiles/1234.pdf hope this information could further give enlightenment to this case... any other suggestions? all the best!!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Issue
On Jun 2, 2004, at 6:42 PM, Benjohn P. Villedo wrote: On 2 Jun 2004 at 14:51, Chris Bowditch wrote: One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris very true i didn't specify width and height because the images that are being attached to the pdf have variable dimensions. hmm so that's the behaviour of FOP. i actually tried changing the page size to 40x40inches and still the image did not display... as with regards to the command line warnings... i don't see them if there are any coz i just access the xml file via browser say i resulted to 1234.xml file i access it via http://FQDN:8080/cocoon/xmlfiles/1234.pdf hope this information could further give enlightenment to this case... any other suggestions? all the best!!! pal, benjohn This link has some good information about Graphics Resolution: http://xml.apache.org/fop/graphics.html#resolution In partciular, it indicates that if you specify a single dimension, it will proprotionately scale the image to fit. Thus, you could specify a maximum width (or height) and it would scale to that size. You just need to be sure the corresponding image dimension doesn't put the image off the page. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image Size Issue
hi all, Good Day!!! i have read lots about images in PDF and have successfully displayed an image already however i noticed on my system that it could not accommodate an image greater than 60kb to 70kb of size, what happens is i get an empty pdf file when the image size goes higher than mentioned. before creating the xml file i call: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= org.apache.fop.image.FopImageFactory.resetCache(); ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= as mentioned on one of the docs frees up memory to accommodate image transactions. now on the XML file here is what i use: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= figurephoto image=http://FQDN/images/drawings/B747/ThisIsATest-1234- 5678/.061_67-11-018-Sht5_RevA.jpg//figure ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= and on the XSL file: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= xsl:template match=figure fo:block xsl:apply-templates/ /fo:block /xsl:template xsl:template match=photo fo:block text-align=center fo:external-graphic src=[EMAIL PROTECTED]/ /fo:block /xsl:template ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= my system runs on a Pentium 3 800Mhz with 256Mb RAM having: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= Operating System: Linux RedHat 7.2 Java: j2sdk1.4 Tomcat: jakarta-tomcat-4.1.27 FOP: fop-0.20.5 Cocoon: cocoon-2.1.2 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= ok where does this all boil down to? ... Image Quality... when i lower down the image file size to 60Kb all the small figures, numbers and tables get blurry to the point that even when the document gets printed those small numbers could not be read anymore not to mention the actual drawings/diagrams the original file size with good quality could go up to 17x11inches in dimension @ 100 ppi quality = 400Kb file size imagine bringing that down to 60Kbto 70Kb... i was hoping if anyone has a workaround for this case so as i could still maintain the sharpness in detail of the images attached in the PDF file... herewith i also attach the 60kb image for a better view of the quality disintegration thanks for the attention... all the best!!! pal, benjohn The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. File information --- File: 061_67-11-018-Sht1-RevA0001.gif Date: 24 Dec 2003, 11:40 Size: 60456 bytes. Type: GIF-image attachment: 061_67-11-018-Sht1-RevA0001.gif- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Issue
Benjohn P. Villedo wrote: hi all, Good Day!!! i have read lots about images in PDF and have successfully displayed an image already however i noticed on my system that it could not accommodate an image greater than 60kb to 70kb of size, what happens is i get an empty pdf file when the image size goes higher than mentioned. One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]