vikrambalye / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Explicit image width/height renders way off #288

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to force some images to have a set width/height by setting those 
values through css.

When I do so the images sizes is way smaller than it should be.

What steps will reproduce the problem?
1. Add an image with explicit width/height: <img src='<url to image>' 
style='width:80mm;height:80mm'/>
2. render pdf
3. open pdf in inkspace/illstrator/whatever

What is the expected output? What do you see instead?
Expected output would be the image to be 80mm wide & high.
Instead it's a lot smaller (about 20mm for my test case)

What version of the product are you using? On what operating system?
Using the latest 06 beta 2 - tried svn too, same issue.

OS is Mac OS 10.6.7, running PHP 5.3.2.
Source image is a PNG image at 72dpi.

Please provide any additional information below.

Original issue reported on code.google.com by ben.lago...@gozer.com.au on 25 May 2011 at 5:52

GoogleCodeExporter commented 9 years ago
Currently image dimensions are affected by the DOMPDF_DPI setting, except when 
using certain units (e.g. points or percentage).

However, when you specify a real-world dimension (such as mm) DOMPDF should 
probably not adjust the image dimensions based on the DPI. This is something 
we'll have to look at.

Original comment by eclecticgeek on 25 May 2011 at 4:31

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r400.

Original comment by fabien.menager on 30 May 2011 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:15