Menu

#3 Patch for bug #1093374

open
nobody
None
5
2016-11-23
2004-12-30
No

The attached patch should fix bug #1093374.

Please note that even after applying this patch, the
generated base64 data is not really RFC2045 compliant
(the base64 alphabet in the RFC starts with "A", not
with "0"), but at least should be coherent between
sngc.c and sngd.c.

Discussion

  • Lino Mastrodomenico

    patch

     
  • Max Horn

    Max Horn - 2013-08-08

    A pity I didn't see this before, would have saved me some work... On the plus side, I also added a fix for this to my sng fork, see https://github.com/fingolfin/sng/tree/modern-libpng

     
  • Eric S. Raymond

    Eric S. Raymond - 2016-01-08

    Max, I just tested with your 1.1.0 changes merged and this bug still seems to be present.

     
  • Max Horn

    Max Horn - 2016-01-10

    How do you reproduce it? I took the spiderman.png from the original bug report, convered it to a sng, and then that back to a png. Yeah, the png was different (likely due to better compression), but the actual content is identical (according to "gm compare"). I then converted the new png again to an sng -- the two sng files are identical.

    ~/Projekte/foreign/sng-code (git:master+)$ ls -al spiderman*
    -rw-r--r-- 1 mhorn staff  30311 Jan 10 12:29 spiderman-new.png
    -rw-r--r-- 1 mhorn staff 126423 Jan 10 12:30 spiderman-new.sng
    -rw-r--r-- 1 mhorn staff  28948 Jan 10 12:28 spiderman.png
    -rw-r--r-- 1 mhorn staff 126423 Jan 10 12:29 spiderman.sng
    ~/Projekte/foreign/sng-code (git:master+)$ diff -u spiderman*sng
    ~/Projekte/foreign/sng-code (git:master+)$ gm compare -metric mse  spiderman.png spiderman-new.png
    Image Difference (MeanSquaredError):
               Normalized    Absolute
              ============  ==========
         Red: 0.0000000000        0.0
       Green: 0.0000000000        0.0
        Blue: 0.0000000000        0.0
       Total: 0.0000000000        0.0
    
     
  • Max Horn

    Max Horn - 2016-11-23

    Can this be closed now?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.