Can IM change timestamp?

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
VanGog
Posts: 308
Joined: 2012-02-05T02:46:58-07:00
Authentication code: 8675308

Can IM change timestamp?

Post by VanGog »

I have folder with bitmaps and I want to use convert -level to convert the image, overwrite it with newfile with same name, but I need to change timestamp, for example 01-01-2001 01:01:01. Can IM change the timestamp? I use Windows and don't know about the way how to do it in Windows from command line.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Can IM change timestamp?

Post by glennrp »

Which timestamp are you referring to? There is the system's timestamp that you see when you list a directory, there is a date:create property, and probably an internal timestamp inside the EXIF property. Assuming you are talking about the first, that's outside of the scope of ImageMagick. On a Linux system you'd use "touch". I don't know what is the Windows equivalent but I'm sure there is one.
VanGog
Posts: 308
Joined: 2012-02-05T02:46:58-07:00
Authentication code: 8675308

Re: Can IM change timestamp?

Post by VanGog »

I found touch equivalent for windows so I will use it http://sourceforge.net/projects/unxutils/
Post Reply