Re: Images and PDF:API2
"spinningwebz2002" <spinningwebz2002-/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Mr. Shawn H. Corey" <shawnhcorey@...> wrote: > > spinningwebz2002 wrote: > > If I know the image hieght but not the width (i am resizing it using > > Imagemagick), how would I get it to show the image correctly? > > Same calculation but with height. > > $image_height = $height * $dpi; > $result_height = $what_ever * 72; > $scale = $image_height / $result_height; > > > -- > Just my 0.00000002 million dollars worth, > Shawn > > "For the things we have to learn before we can do them, we learn by doing them." > Aristotle > Thanks Shawn. I ended up adding a perl module to get the actual size of the converted image and it works great. Bill H