mogrify leaves me with FILENAME.JPG~ ... does not overwrite

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
flipjarg
Posts: 7
Joined: 2013-06-13T11:18:30-07:00
Authentication code: 6789

mogrify leaves me with FILENAME.JPG~ ... does not overwrite

Post by flipjarg »

I am hoping someone can at least give me some direction on this. I am not very familiar with using ImageMagick on Windows, so I may be missing something obvious. Right now I have a right click menu that runs this command to resize any image(s) that is selected.

"C:\Program Files (x86)\ImageMagick-6.8.9-5-Q16\mogrify.exe" -resize 640 -quality 100 "%1"

This works just fine on my computer. However, this morning, I installed ImageMagick on a friends computer and setup the menu for him. When I run it on his computer, I get the following result...

big_photo.JPG
big_photo.JPG~

Instead of resizing the file, it just creates the file big_photo.JPG~. I renamed the file to "big_photo_resized.JPG" and it has been resized and opens just fine. I just don't know why ImageMagick isn't overwriting "big_photo.JPG" with the resized image.

More info:
Operating System: Windows 7
ImageMagick Version: ImageMagick-6.8.9-5-Q16-x64-dll.exe
flipjarg
Posts: 7
Joined: 2013-06-13T11:18:30-07:00
Authentication code: 6789

Re: mogrify leaves me with FILENAME.JPG~ ... does not overwr

Post by flipjarg »

...okay, I was partially wrong about this. Apparently the original file is being resized but it the file "filename.JPG~" gets left behind. If I resize "filename.JPG" again, it creates another file name "filename.JPG~~" and so on. For some reason this temp file (I assume it is a temp file) is not being deleted. Any ideas?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: mogrify leaves me with FILENAME.JPG~ ... does not overwr

Post by snibgo »

Permissions? Maybe the logged-on user doesn't have delete privilege on the file or from the directory?
snibgo's IM pages: im.snibgo.com
flipjarg
Posts: 7
Joined: 2013-06-13T11:18:30-07:00
Authentication code: 6789

Re: mogrify leaves me with FILENAME.JPG~ ... does not overwr

Post by flipjarg »

This is being done in a folder on the user's desktop. I can't imagine it would be a permission issue.
Post Reply