• Bug#266471: another convert problem eps-->ppm

    From Oliver Johns@1:229/2 to All on Wed Aug 18 01:00:12 2004
    From: [email protected]

    Package: imagemagick
    Version: 5:6.0.5.2-1
    Severity: important



    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.4.26-1-686
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages imagemagick depends on:
    ii libmagick6 5:6.0.5.2-1 Image manipulation library (free v

    -- no debconf information

    This happens on i386 architecture with up to date unstable.
    Upgrade to version 5:6.0.5.2-1 does not fix this problem. Here is a simple (only three straight lines) fig file called new.fig
    and the eps file exported from xfig called new.eps. The command
    convert new.eps new.ppm
    produced the garbled file new.ppm. I include the gzip file new.ppm.gz below.

    --OJ

    new.fig
    ****************************************************************
    #FIG 3.2 Produced by xfig version 3.2.5-alpha5
    Landscape
    Center
    Metric
    A4
    100.00
    Single
    -2
    1200 2
    2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
    810 540 5130 2430
    2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
    1845 2385 5490 675
    2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
    2970 360 3060 2880 *************************************************************
    end of new.fig


    new.eps
    ***************************************************************
    %!PS-Adobe-2.0 EPSF-2.0
    %%Title: new.fig
    %%Creator: fig2dev Version 3.2 Patchlevel 5-alpha5
    %%CreationDate: Tue Aug 17 15:08:32 2004
    %%For: [email protected] (Oliver Johns,,,)
    %%BoundingBox: 0 0 297 161
    %Magnification: 1.0000
    %%EndComments
    /$F2psDict 200 dict def
    $F2psDict begin
    $F2psDict /mtrx matrix put
    /col-1 {0 setgray} bind def
    /col0 {0.000 0.000 0.000 srgb} bind def
    /col1 {0.000 0.000 1.000 srgb} bind def
    /col2 {0.000 1.000 0.000 srgb} bind def
    /col3 {0.000 1.000 1.000 srgb} bind def
    /col4 {1.000 0.000 0.000 srgb} bind def
    /col5 {1.000 0.000 1.000 srgb} bind def
    /col6 {1.000 1.000 0.000 srgb} bind def
    /col7 {1.000 1.000 1.000 srgb} bind def
    /col8 {0.000 0.000 0.560 srgb} bind def
    /col9 {0.000 0.000 0.690 srgb} bind def
    /col10 {0.000 0.000 0.820 srgb} bind def
    /col11 {0.530 0.810 1.000 srgb} bind def
    /col12 {0.000 0.560 0.000 srgb} bind def
    /col13 {0.000 0.690 0.000 srgb} bind def
    /col14 {0.000 0.820 0.000 srgb} bind def
    /col15 {0.000 0.560 0.560 srgb} bind def
    /col16 {0.000 0.690 0.690 srgb} bind def
    /col17 {0.000 0.820 0.820 srgb} bind def
    /col18 {0.560 0.000 0.000 srgb} bind def
    /col19 {0.690 0.000 0.000 srgb} bind def
    /col20 {0.820 0.000 0.000 srgb} bind def
    /col21 {0.560 0.000 0.560 srgb} bind def
    /col22 {0.690 0.000 0.690 srgb} bind def
    /col23 {0.820 0.000 0.820 srgb} bind def
    /col24 {0.500 0.190 0.000 srgb} bind def
    /col25 {0.630 0.250 0.000 srgb} bind def
    /col26 {0.750 0.380 0.000 srgb} bind def
    /col27 {1.000 0.500 0.500 srgb} bind def
    /col28 {1.000 0.630 0.630 srgb} bind def
    /col29 {1.000 0.750 0.750 srgb} bind def
    /col30 {1.000 0.880 0.880 srgb} bind def
    /col31 {1.000 0.840 0.000 srgb} bind def

    end
    save
    newpath 0 161 moveto 0 0 lineto 297 0 lineto 297 161 lineto closepath clip newpath
    -50.3 182.2 translate
    1 -1 scale

    /cp {closepath} bind def
    /ef {eofill} bind def
    /gr {grestore} bind def
    /gs {gsave} bind def
    /sa {save} bind def
    /rs {restore} bind def
    /l {lineto} bind def
    /m {moveto} bind def
    /rm {rmoveto} bind def
    /n {newpath} bind def
    /s {stroke} bind def
    /sh {show} bind def
    /slc {setlinecap} bind def
    /slj {setlinejoin} bind def
    /slw {setlinewidth} bind def
    /srgb {setrgbcolor} bind def
    /rot {rotate} bind def
    /sc {scale} bind def
    /sd {setdash} bind def
    /ff {findfont} bind def
    /sf {setfont} bind def
    /scf {scalefont} bind def
    /sw {stringwidth} bind def
    /tr {translate} bind def
    /tnt {dup dup currentrgbcolor
    4 -2 roll dup 1 exch sub 3 -1 roll mul add
    4 -2 roll dup 1 exch sub 3 -1 roll mul add
    4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
    bind def
    /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
    4 -2 roll mul srgb} bind def
    /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
    /$F2psEnd {$F2psEnteredState restore end} def

    $F2psBegin
    10 setmiterlimit
    0 slj 0 slc
    0.06299 0.06299 sc
    %
    % Fig objects follow
    %
    %
    % here starts figure with depth 50
    % Polyline
    0 slj
    0 slc
    7.500 slw
    n 810 540 m
    5130 2430 l gs col0 s gr
    % Polyline
    n 1845 2385 m
    5490 675 l gs col0 s gr
    % Polyline
    n 2970 360 m
    3060 2880 l gs col0 s gr
    % here ends figure;
    $F2psEnd
    rs
    showpage
    %%Trailer
    %EOF
    ************************************************************
    end of new.eps


    new.ppm.gz
    *********************************************************** ��"Anew.ppm��[n�0����[h���.����j40�ġe���9�(�\�"��y}z�����ןO�//O'�{{{�,J� ��Aу����,G� ��Aу�!�B�^{669)J{�%Vkq��EBX!�B��ͧB� @$��e�k��� �8()_���pi��ddq�'!Ȃ�l��d�s���9t����U��+�9��ɩz�����ɦz�4{���<wi�G�ƑT����
    ���Z���e��������$��|+�ۧ֜ћi����{�� 't����O��"�������2p����@d_K}���=ƫ�g䊖��ls�q�1�%tI(�:�:!E�M}�S�~nע^����"X�����U�TK.#2��r*ʱ�+S���w.#��ͧ�⌋3ؾ�͸לu�:th �lK�cGG�S�S�� ��V�� s�r�#z�e���W}�vu_@��@,={KR�pQ�u������P 
    U��j�6:**ݷ�g�N���f��K@?�aI�=�{�j~��S��s�Ύ���m�_F��%/��!�G~��_@��/#�\[@37Atp��� �tyx"t0�e�c�_�tV@wWLFV7@��@��.�b�G��%�"��:�@�K�F︘ �]EoZ4\F����!3�`dY�%|0Y�����K�w_A����i�;�aD�N.:l8u���;d��#t��=��n��OGQ�l�\F�IJ}h$��
    ;3L��>2'J�}k�o^����.��63ul�sv�2�qZ�^e|��y@�~�̄�b��X�����S��@���.�.[q� #�]����H5�l��'�W�Wh��@NXN�}�����I�6���@�Н��j�����U,z'u�܀s��Q�O�НvZ�����ڥ���ւ�3�6=6H!���颻�.����$p��"��
    �� ��Aу��&B��=!zB� ��Aу�%��k�/��j0

    **********************************************************
    end of new.ppm.gz


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Oliver Johns@1:229/2 to All on Wed Aug 18 01:30:13 2004
    From: [email protected]

    Looks like sending the new.ppm.gz was not a very bright idea. The
    new.fig and new.eps files should be enough for a test, however. If
    anyone wants the new.ppm.gz file that is garbled, I'd be happy to
    email it to them.

    Downgrading to libmagick6, imagemagick, and perlmagick version
    5:6.0.3.1-3 solves the problem. The new.ppm file is then OK.

    --OJ


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)