[Bug 1932297] Re: 8:6.9.7.4+dfsg-16ubuntu6.11 break pcx 1bit creation

Georg Pelz 1932297 at bugs.launchpad.net
Tue Jun 22 09:02:15 UTC 2021


I found a workaround by using an intermediate file which works with
20.04 and on my 18.04 system.

first crop&co, but output to .gif using:
convert -crop 1200x800+1+1 +repage -rotate 180 -crop +2+1 +repage -rotate -90 -bordercolor white -border 1x1 -resize 1200 upsversandauftrag_etikett_1848655-1_test.gif -colorspace Gray -depth 1 -colors 2 -depth 1 upsversandauftrag_etikett_1848655-1_bw.gif

file upsversandauftrag_etikett_1848655-1_bw.gif 
upsversandauftrag_etikett_1848655-1_bw.gif: GIF image data, version 89a, 1200 x 1800

then convert the new .gif to pcx using:
convert upsversandauftrag_etikett_1848655-1_bw.gif upsversandauftrag_etikett_1848655-1.pcx

file upsversandauftrag_etikett_1848655-1.pcx
upsversandauftrag_etikett_1848655-1.pcx: PCX ver. 3.0 image data bounding box [0, 0] - [1199, 1799], 1-bit colour, RLE compressed

-> no clue, why the additional step is necessary, but it fixes the issue for me.
May be the workaround also helps to figure out what changed in imagemagick that breaks the direct gif->pcx conversion with the cropping&co.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/1932297

Title:
  8:6.9.7.4+dfsg-16ubuntu6.11 break pcx 1bit creation

Status in imagemagick package in Ubuntu:
  Incomplete

Bug description:
  Today 8:6.9.7.4+dfsg-16ubuntu6.11 got installed on my server 18.04
  server.

  
  ---
  Start-Date: 2021-06-17  06:26:11
  Commandline: /usr/bin/unattended-upgrade
  Upgrade: imagemagick:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9, 8:6.9.7.4+dfsg-16ubuntu6.11)
  End-Date: 2021-06-17  06:26:14

  Start-Date: 2021-06-17  06:26:19
  Commandline: /usr/bin/unattended-upgrade
  Upgrade: imagemagick-6.q16:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9, 8:6.9.7.4+dfsg-16ubuntu6.11)
  End-Date: 2021-06-17  06:26:23

  Start-Date: 2021-06-17  06:26:27
  Commandline: /usr/bin/unattended-upgrade
  Upgrade: libimage-magick-q16-perl:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9, 8:6.9.7.4+dfsg-16ubuntu6.11)
  End-Date: 2021-06-17  06:26:29

  Start-Date: 2021-06-17  06:26:33
  Commandline: /usr/bin/unattended-upgrade
  Upgrade: libmagick++-6.q16-7:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9, 8:6.9.7.4+dfsg-16ubuntu6.11)
  End-Date: 2021-06-17  06:26:36
  ---

  before the update calling:

  convert -crop 1200x800+1+1 +repage -rotate 180 -crop +2+1 +repage
  -rotate -90 -bordercolor white -border 1x1 -resize 1200
  upsversandauftrag_etikett_1848655-1_test.gif -colorspace Gray -depth 1
  -colors 2 -depth 1 -colorspace Gray
  upsversandauftrag_etikett_1848655-1.pcx

  to modify UPS labels to send them to my label printer worked fine.
  file upsversandauftrag_etikett_1848655-1.pcx
  properly returned:
  upsversandauftrag_etikett_1848655-1_mitalterVersion.pcx: PCX ver. 3.0 image data bounding box [0, 0] - [1199, 1799], 1-bit colour, RLE compressed

  now calling the same calls returns a:
  upsversandauftrag_etikett_1848655-1.pcx: PCX ver. 3.0 image data bounding box [0, 0] - [1199, 1799], 3 planes each of 8-bit colour, RLE compressed
  and a file which can't be fed to my label printer.

  
  file size of the old output was 135K, while the new one is 619K.

  Only way to fix this so far was going back to 8:6.9.7.4+dfsg-16ubuntu6
  (8:6.9.7.4+dfsg-16ubuntu6.9 wasn't available) and hold any updates for
  those packages. :/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1932297/+subscriptions



More information about the foundations-bugs mailing list