[Bug 1079813] [NEW] Inconsistent results from "%p"

Greg Toombs greg.toombs at bluebottle.com
Fri Nov 16 18:16:41 UTC 2012


Public bug reported:

When I run this:

convert joint/* \
    -limit memory 512MiB \
	-type Grayscale \
    -crop 2x1@ +adjoin \
    -set filename:fn '%t-%[fx:1+(p&1)].%e' \
    +repage \
    'separate/%[filename:fn]'

Sometimes the "p" in the fx call doesn't update properly, leading to
files  getting inconsistently overwritten, like this (output from
'verbose'):

joint/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens.jpg=>separate/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens-2.jpg[0] JPEG 640x324=>320x324 8-bit Grayscale DirectClass 20.5KB 42.370u 0:29.949
joint/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens.jpg=>separate/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens-1.jpg[1] JPEG 640x324=>320x324 8-bit Grayscale DirectClass 20.5KB 42.360u 0:29.969
joint/1080par.jpg=>separate/1080par-1.jpg[2] JPEG 1238x720=>619x720 8-bit Grayscale DirectClass 81.9KB 42.170u 0:29.829
joint/1080par.jpg=>separate/1080par-1.jpg[3] JPEG 1238x720=>619x720 8-bit Grayscale DirectClass 81.9KB 42.170u 0:29.830
joint/1240637960_ec87a611d8_b.jpg=>separate/1240637960_ec87a611d8_b-1.jpg[4] JPEG 1024x641=>512x641 8-bit Grayscale DirectClass 86KB 41.970u 0:29.729
joint/1240637960_ec87a611d8_b.jpg=>separate/1240637960_ec87a611d8_b-1.jpg[5] JPEG 1024x641=>512x641 8-bit Grayscale DirectClass 86KB 41.970u 0:29.730

** Affects: imagemagick (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1079813

Title:
  Inconsistent results from "%p"

Status in “imagemagick” package in Ubuntu:
  New

Bug description:
  When I run this:

  convert joint/* \
      -limit memory 512MiB \
  	-type Grayscale \
      -crop 2x1@ +adjoin \
      -set filename:fn '%t-%[fx:1+(p&1)].%e' \
      +repage \
      'separate/%[filename:fn]'

  Sometimes the "p" in the fx call doesn't update properly, leading to
  files  getting inconsistently overwritten, like this (output from
  'verbose'):

  joint/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens.jpg=>separate/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens-2.jpg[0] JPEG 640x324=>320x324 8-bit Grayscale DirectClass 20.5KB 42.370u 0:29.949
  joint/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens.jpg=>separate/0_stereoscopic_views_-_kilburn_-_royal_botanic_gardens-1.jpg[1] JPEG 640x324=>320x324 8-bit Grayscale DirectClass 20.5KB 42.360u 0:29.969
  joint/1080par.jpg=>separate/1080par-1.jpg[2] JPEG 1238x720=>619x720 8-bit Grayscale DirectClass 81.9KB 42.170u 0:29.829
  joint/1080par.jpg=>separate/1080par-1.jpg[3] JPEG 1238x720=>619x720 8-bit Grayscale DirectClass 81.9KB 42.170u 0:29.830
  joint/1240637960_ec87a611d8_b.jpg=>separate/1240637960_ec87a611d8_b-1.jpg[4] JPEG 1024x641=>512x641 8-bit Grayscale DirectClass 86KB 41.970u 0:29.729
  joint/1240637960_ec87a611d8_b.jpg=>separate/1240637960_ec87a611d8_b-1.jpg[5] JPEG 1024x641=>512x641 8-bit Grayscale DirectClass 86KB 41.970u 0:29.730

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




More information about the foundations-bugs mailing list