bernattorras / dompdf

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

image scale in beta 3 seems not to work anymore #462

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
using this:
  $pdf->image($path, "jpg", ($w - $img_w) / 2.0, $y,  $img_w, $img_h);

What is the expected output? What do you see instead?

in beta 2 you see an image that is scaled in the right way and in it's right 
position.

in beta 3 it seems that $y is the x-scalefactor of the image and the 
positioning is not working anymore

What version of dompdf are you using? What version of PHP? On what
operating system?
beta 3
php 5.2

Please provide the HTML source code you want to convert, or any additional
information.

Original issue reported on code.google.com by rob.mobi...@gmail.com on 11 Apr 2012 at 6:17

GoogleCodeExporter commented 8 years ago
In beta 3 you no longer need to specify the image type. Try:
$pdf->image($path, ($w - $img_w) / 2.0, $y,  $img_w, $img_h);

Original comment by eclecticgeek on 11 Apr 2012 at 10:59

GoogleCodeExporter commented 8 years ago
Thanks it's working

Original comment by rob.mobi...@gmail.com on 13 Apr 2012 at 6:49

GoogleCodeExporter commented 8 years ago

Original comment by fabien.menager on 13 Apr 2012 at 8:23

GoogleCodeExporter commented 8 years ago

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