convert in.dng out.png resets timestamp of in.dng

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

convert in.dng out.png resets timestamp of in.dng

Post by glennrp »

Relaying a bug report found on StackOverflow:

Code: Select all

magick in.dng out.png
updates the timestamp of "in.dng".

But

Code: Select all

ufraw-batch --silent --create-id=also --out-type=png --out-depth=16 --output=out.png in.dng
which I believe is the "delegate" command used by ImageMagick, does not.

Even worse, if I first make the in.dng unwriteable

Code: Select all

 chmod 400 in.dng
 magick in.dng out.png 
then convert (a.k.a magick) successfully creates out.png but removes in.dng, without any error or warning message.

This test with ImageMagick-7.0.0-0 Q16 x86_64 2016-02-12 and ufraw-batch version 0.22.
Reference: http://stackoverflow.com/questions/3533 ... e-modified
Last edited by glennrp on 2016-02-13T06:36:13-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert in.dng out.png resets timestamp of in.dng

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Post Reply