Re: Re: Images and PDF:API2

"Mr. Shawn H. Corey" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.