Page 1 of 1

"Ignoring invalid time value" when writing PNGs

Posted: 2017-08-12T22:40:25-07:00
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.

Re: "Ignoring invalid time value" when writing PNGs

Posted: 2017-08-13T04:36:42-07:00
by magick
Its possible this problem is fixed in ImageMagick 7.0.6-7. If not, let us know and we will investigate further.

Re: "Ignoring invalid time value" when writing PNGs

Posted: 2017-08-13T09:30:33-07:00
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.

Re: "Ignoring invalid time value" when writing PNGs

Posted: 2017-08-14T13:12:01-07:00
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.

Re: "Ignoring invalid time value" when writing PNGs

Posted: 2017-08-15T13:03:53-07:00
by jeroenooms
I am still seeing this problem in IM 6.9.9-7

Re: "Ignoring invalid time value" when writing PNGs

Posted: 2017-08-19T05:41:01-07:00
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

Re: "Ignoring invalid time value" when writing PNGs

Posted: 2017-08-19T09:07:53-07:00
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.