Opened 12 years ago
Closed 2 years ago
#37103 closed defect (fixed)
ImageMagick 6.8.0 does not correctly display SVG files on PPC (here Leopard 10.5.8)
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | off-colour | Cc: | |
Port: | ImageMagick |
Description
Having a problem with the display of SVG files in GNU Emacs 24.3.50 I built this version of GNU Emacs with Fink's ImageMagick and MacPorts' ImageMagick. On intel Snow Leopard both packages (display utility) and GNU Emacs work correctly, so it's likely that the PPC hardware platform with its number format causes the false colours to be displayed. I am attaching a screen-shot with two windows of ImageMagick's display utility on Leopard, one showing the PNG version (with transparency, obviously) and the other the SVG version. Both files can be found in the sources in emacs/etc/images, but I'll try to attach them as well.
A final test would be to not use ImageMagick but all the many graphics libraries – the MacPorts GNU Emacs 24.2 does not offer a variant built with librsvg2…
Attachments (3)
Change History (10)
Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
Attachment: | Splash Differences.png added |
---|
Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
Attachment: | splash.png added |
---|
emacs/etc/images/splash.png
Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
Attachment: | splash.svg added |
---|
emacs/etc/images/splash.svg
comment:1 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
I managed to build GNU Emacs 24.3.50 without ImageMagick support. With librsvg2 it displays splash.svg correctly.
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:3 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
On PPC Tiger, Mac OS X 10.4.11, I see a similar effect: splash.svg in wrong colours.
comment:4 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
Since versions 6.6.x at least ImageMagick has these problems. There are two: when it uses librsvg-2 it computes the wrong size of the SVG image, first without librsvg-2:
pete 442 /\ /opt/local/bin/identify --version Version: ImageMagick 6.8.1-7 2013-01-02 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC Features: HDRI OpenCL OpenMP Modules Delegates: bzlib djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lzma openexr pango png ps tiff x xml zlib pete 443 /\ /opt/local/bin/identify etc/images/splash.svg etc/images/splash.svg SVG 276x190 276x190+0+0 16-bit sRGB 23.8KB 0.000u 0:00.009 pete 444 /\ /opt/local/bin/identify etc/images/splash.png etc/images/splash.png PNG 275x188 275x188+0+0 8-bit sRGB 37.5KB 0.000u 0:00.000
Now adding librsvg-2:
pete 446 /\ /opt/local/bin/identify --version Version: ImageMagick 6.8.1-7 2013-01-02 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC Features: HDRI OpenCL OpenMP Modules Delegates: bzlib djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lzma openexr pango png ps rsvg tiff x xml zlib pete 447 /\ /opt/local/bin/identify etc/images/splash.svg etc/images/splash.svg SVG 345x237 345x237+0+0 16-bit sRGB 23.8KB 0.000u 0:00.050 pete 448 /\ /opt/local/bin/identify etc/images/splash.png etc/images/splash.png PNG 275x188 275x188+0+0 8-bit sRGB 37.5KB 0.000u 0:00.000
The same can be observed (at least) on G4/PPC 7447A hardware. The second problem seems to be related (at least) toG4/PPC 7447A hardware:
- with librsvg-2 display displays SVG in false colours - without librsvg-2 SVG images are displayed black&white
I'm trying to see whether my bug reports lead to improvements, so I am building up-to-date ImageMagick installations.
comment:5 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)
I have emacs @24.2_2+gtk+x11 installed. It does not use ImageMagick to display graphics files but the "discrete" libraries. Using librsvg-2 GNU Emacs displays splash.svg in correct colours and at correct size – on both hardware! So it's not a fault of librsvg-2.
comment:6 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)
display from ImageMagick @6.9.11-60
displays PNG and SVG
files quite similar to Preview.app, so this ticket can be closed now.
Screen-shot displaying splash.png and splash.svg