Hi,

this patch is currently not part of the trunk but very important! Can someone 
check this in, please?
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
Tel: +49/(0)40/41 455 455





> Am 24.07.2019 um 11:40 schrieb Michal Sudolsky <sudols...@gmail.com>:
> 
> 
> 
> ---------- Forwarded message ---------
> From: Andreas Brzesowsky <andreas.brzesow...@dots.de>
> Date: Wed, Jul 24, 2019 at 11:37 AM
> Subject: Re: [Podofo-users] Patch for png transparency and gray scale
> To: Michal Sudolsky <sudols...@gmail.com>
> 
> 
> Oh, yes, sorry.
> 
> Am 24.07.2019 um 11:26 schrieb Michal Sudolsky:
>> Hi,
>> 
>> Seems you sent wrong patch file.
>> 
>> 
>> On Wed, Jul 24, 2019 at 11:14 AM Andreas Brzesowsky 
>> <andreas.brzesow...@dots.de> wrote:
>> Hi,
>> 
>> we had some problems with adding png images to pdf files with Podofo.
>> There are some color types not working and transparency is ignored or 
>> replaced by black.
>> So I fixed the issues in Podofo and tested them with the images from the 
>> PngSuite (http://www.libpng.org/pub/png/pngsuite.html).
>> To compare the differences I created the attached "testPngSuite.pdf" where 
>> you can see one image of the PngSuite per page.
>> On the left the imaged added with Podofo revison 1997 and on the right after 
>> my patch ("PdfFontCache.cpp.patch").
>> 
>> Changes:
>> - Handle color type gray with 1, 2 and 4 bit deepth
>> - If the png contains transparency, than a smask is created for the pdf
>> - If the png has a color palette, than the indexed color space 
>> (ePdfColorSpace_Indexed) is used in the pdf.
>> - Reduced the doubled code in LoadFromPngHandle and LoadFromPngData by 
>> having the local LoadFromPngContent function for this shared code
>> 
>> So please check my changes and add them to the repository or ask questions.
>> 
>> Kind regards
>> 
>> Andreas
>> -- 
>> 
>> 
>> Andreas Brzesowsky
>> 
>> dots Gesellschaft für Softwareentwicklung mbH
>> Schlesische Str. 27, 10997 Berlin, Germany
>> Phone: +49 (0)30 695 799-33, Fax: +49 (0)30 695 799-55
>> 
>> andreas.brzesow...@dots.de
>> http://www.dots.de
>> 
>> Amtsgericht (District Court): Berlin Charlottenburg HRB 65201
>> Geschäftsführer (Managing Directors): Takeo Morohashi
>> 
>> Follow us on:                        
>> 
>>  
>> _______________________________________________
>> Podofo-users mailing list
>> Podofo-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/podofo-users
> 
> -- 
> 
> 
> Andreas Brzesowsky
> 
> dots Gesellschaft für Softwareentwicklung mbH
> Schlesische Str. 27, 10997 Berlin, Germany
> Phone: +49 (0)30 695 799-33, Fax: +49 (0)30 695 799-55
> 
> andreas.brzesow...@dots.de
> http://www.dots.de
> 
> Amtsgericht (District Court): Berlin Charlottenburg HRB 65201
> Geschäftsführer (Managing Directors): Takeo Morohashi
> 
> Follow us on:                         
> 
>  
> <PdfImage.cpp.patch>_______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users




_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to