Subject: | Bug #41805 - Patch to make prJpeg understand Grayscale etc. |
Date: | Tue, 20 Apr 2010 17:17:26 +0100 |
To: | <bug-PDF-Reuse [...] rt.cpan.org> |
From: | "Julian Bridle" <Julian.Bridle [...] pacepetroleum.com> |
Dear Lars,
I have been using PDF::Reuse for a couple of months now and have found
it very useful. I particularly like the quick start-up time compared to
PDF::API2 because my application often needs to create a single small
PDF file on a single invocation of the perl script. Thanks you for your
efforts in producing it.
I am not using the 'reuse' features but generating files from scratch so
I have noticed the same problem already reported as bug number 41805 -
that prJpeg() does not understand Grayscale jpg files. I have enhanced
prJpeg to do this and as this means it needs to call Image::Info, also
integrated the logic to automatically assess the image size and return
it. For 99.9% of uses, the Image::Info overhead is the same but just
moved from the caller to the module.
The changed subroutine still keeps the original behaviour (and speed) if
you call it in the original way. I have attached the patch file for you
to assess if you wish to integrate it with the distribution.
Although I think the issue and patch are relevant to any platform, my
platform is:
Hardware: Sun E3500
OS: Solaris 10.00 on Sparc
Perl 5.10.1
PDF::Reuse 0.35
Thanks for your work in developing this package - I hope you consider my
contribution useful.
Regards,
Julian Bridle
MRH (GB) Limited Disclaimer
Confidentiality: This e-mail and its attachments are confidential, may be legally privileged and are intended solely for the above named addressee(s). However, in certain circumstances the contents of this e-mail may have to be disclosed in response to a request under the provisions of the Data Protection Act. If you have received this e-mail in error you must take no action based on it or its attachments, nor must you copy or show them to anyone. You must notify the sender immediately and then delete the e-mail and any attachments. Security: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. E-mails are susceptible to interference. If you are in any doubt about the origins of this e-mail or whether its original content has been accurately reproduced, please verify its authenticity with the sender. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although reasonable steps have been taken to ensure that this e-mail and its attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
This e-mail has been sent by a company that is a member of the MRH (GB) Limited group of companies. MRH (GB) Limited is a company registered in England and Wales with the registration number 6360543. The Registered Office is Vincent House, 4 Grove Lane, Epping, Essex, CM16 4LH. Tel: +44 (0)1992 571937, Fax: +44 (0)1992 571950. The VAT Registration Number is: 718 6378 04. Different VAT numbers are in use by other companies within the MRH (GB) Limited group.
Disclaimer added by CodeTwo Exchange Rules
http://www.codetwo.com
Message body is not shown because sender requested not to inline it.