question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File creation time stays the same on Windows for at least JPEG format

See original GitHub issue

I have a Windows 7 x64 machine, and if I use toFile to output a JPEG that already exists it does overwrite the file but it leaves the modification date the same (which is very confusing).

However, if I am outputting a dz tile format using a compressed zip file the modification time does get updated when overwriting.

Interestingly, the operation appears to silently fail if an uncompressed tile format folder exists. For example, if I give the toFile command a path of c:\test\image1.dz and there is already a folder at c:\test\image1_files the command will silently fail (with no error) and will not modify the c:\test\image1.dzi file. If I delete the c:\test\image1_files folder first, the operation succeeds (and also updates the modification time of the c:\test\image1.dzi file.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jcupittcommented, Sep 7, 2017

OK, libvips issue for this: https://github.com/jcupitt/libvips/issues/729

@lovell I guess you can close.

0reactions
jcupittcommented, Sep 8, 2017

Let’s move this discussion to the libvips issue.

https://github.com/jcupitt/libvips/issues/729

At least it’s changing now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JPG Download File DATE/TIME Stamp? - Microsoft Community
Windows 8.1 Mozilla 41.0.1 jpg image files' downloaded (via FireFox) date/time stamps which have always shown the date/time of the file DOWNLOAD time...
Read more >
Can a file appear to be modified before it was created?
Windows will keep the modification time, but the creation time of that file will be set to the time you copied the file...
Read more >
Keeping creation date when exporting to jpeg
The first two are dates (and times) created by the Operating System, and reflect the time that the actual file was written to...
Read more >
How do I reduce the file size of an image?
The primary way to reduce the file size of an image is by increasing the amount of compression. In most image editing applications...
Read more >
Why is "date created" gone when copying p…
If I take off a photo/picture and place it on my desktop, then the data created goes away so it only stays in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found