"Ignoring invalid time value" when writing PNGs

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
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

"Ignoring invalid time value" when writing PNGs

Post by GeeMack »

Using ImageMagick 7.0.6-6 Q16 x64 HDRI on Windows 10. When I run this command...

Code: Select all

magick logo: test.png
I get this warning...

Code: Select all

magick: Ignoring invalid time value `test.png' @ warning/png.c/MagickPNGWarningHandler/1744.
The same warning is issued when I use other IM native images like "gradient:" or "label:" as input images and save as a PNG.

I also get that warning sometimes if I use a PNG image as input and save as a PNG, but it doesn't always happen, and I haven't figured out what triggers it.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: "Ignoring invalid time value" when writing PNGs

Post by magick »

Its possible this problem is fixed in ImageMagick 7.0.6-7. If not, let us know and we will investigate further.
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: "Ignoring invalid time value" when writing PNGs

Post by GeeMack »

magick wrote: 2017-08-13T04:36:42-07:00Its possible this problem is fixed in ImageMagick 7.0.6-7. If not, let us know and we will investigate further.
I tried several tests with ImageMagick 7.0.6-7 Q16 x64 HDRI, and it appears this issue has been resolved. Thanks.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: "Ignoring invalid time value" when writing PNGs

Post by glennrp »

It was a temporary glitch, due to some timestamps having the offset from UTC recorded as "Z" instead of "[+-]hh:mm", in IM-7.0.6-6 and 6.9.9-6.
jeroenooms
Posts: 4
Joined: 2017-07-24T01:26:54-07:00
Authentication code: 1151

Re: "Ignoring invalid time value" when writing PNGs

Post by jeroenooms »

I am still seeing this problem in IM 6.9.9-7
jeroenooms
Posts: 4
Joined: 2017-07-24T01:26:54-07:00
Authentication code: 1151

Re: "Ignoring invalid time value" when writing PNGs

Post by jeroenooms »

I found that this bug only appears at certain (local) time of the day. More discussion here: https://github.com/ImageMagick/ImageMagick/issues/685
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: "Ignoring invalid time value" when writing PNGs

Post by glennrp »

There was a problem with timezones east of GMT zone. I was using an unsigned int for "addhours"
but it can be negative. Working on a fix.
Post Reply