mogrify problem... jpg~,jpg~~ src file created

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
hotcake
Posts: 1
Joined: 2014-06-04T09:52:46-07:00
Authentication code: 6789

mogrify problem... jpg~,jpg~~ src file created

Post by hotcake »

mogrify -resize 1000 1.jpg
-> 1.jpg (resized) 1.jpg~ (source file backup???)

1 more... mogrify -resize 1000 1.jpg
-> 1.jpg , 1.jpg~ , 1.jpg~~


ImageMagick 6.8.8.10-Q8-x64 Windows Binary : no problem.
ImageMagick 6.8.9.2-Q8-x64 Windows Binary : problem.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify problem... jpg~,jpg~~ src file created

Post by fmw42 »

Please clarify your problem. It is not clear what your complaint is about!

If you do not want to overwrite your input file, then use -path to save the output to another existing directory. see http://www.imagemagick.org/Usage/basics/#mogrify
Junker
Posts: 2
Joined: 2014-07-16T06:17:15-07:00
Authentication code: 6789

Re: mogrify problem... jpg~,jpg~~ src file created

Post by Junker »

Since recently mogrify doesn't overwrite the original file, but keeps it around by renaming it to "filename" appended with "~".

There doesn't seem to be a way to turn off this feature.

If I use mogrify, I am sure I want to overwrite the original and don't need it anymore, else I would use convert. I feel like I am being treated as an idiot.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify problem... jpg~,jpg~~ src file created

Post by fmw42 »

Sorry, I do not know how to turn this feature off. It may be OS dependent. Perhaps one of the developers can give you more information.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: mogrify problem... jpg~,jpg~~ src file created

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.9-6 Beta, available by sometime tomorrow. Thanks.
pancakegh
Posts: 8
Joined: 2015-02-12T09:31:45-07:00
Authentication code: 6789

Re: mogrify problem... jpg~,jpg~~ src file created

Post by pancakegh »

Did this patch ever come out? I have the same problem and I can't seem to fix it..
Junker
Posts: 2
Joined: 2014-07-16T06:17:15-07:00
Authentication code: 6789

Re: mogrify problem... jpg~,jpg~~ src file created

Post by Junker »

@pancakegh: Yes, it was fixed. It's been working for me since the above admin post. Currently I have version 6.9.0.4 on Linux.
woody-mc
Posts: 1
Joined: 2015-11-04T02:59:03-07:00
Authentication code: 1151

Re: mogrify problem... jpg~,jpg~~ src file created

Post by woody-mc »

Junker wrote:@pancakegh: Yes, it was fixed. It's been working for me since the above admin post. Currently I have version 6.9.0.4 on Linux.
Still experiencing exactly the same issue with IM 6.9.2-5 (static portable) on Win7 Pro x64...anybody else?
Post Reply