[Magick-bugs] $im->Set('modify-date'=>undef);
Cliff Stanford
cliff at may.be
Wed Apr 1 16:27:29 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I hit a problem where 6.4.0 broke existing code which relied on the
md5sum of the output blob to know whether to send data or a 304 header.
The discussion is here:
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=12230
It was suggested that $im->Set('modify-date'=>undef); would work but it
seems that the code to handle Set()ing a random property was not
introduced until later (although 6.4.0 seems to be the latest PerlMagick
on cpan).
Upgrading even as far as trunk did not actually solve the problem as it
seems that the existing code, whilst it deals with setting properties,
does not deal with deleting them.
I attach a diff against trunk that seems to work for setting and
deleting properties. I'm not convinced that this is the best way to do
it but have tried to make the minimum of changes to solve the problem.
I apologise for the goto but it seemed that, as I was almost certainly
going to introduce new bugs, it was wrong to do so all over the function. :)
Regards,
Cliff.
- --
Cliff Stanford
Might Limited +44 845 0045 666 (Office)
Suite 67, Dorset House +44 7973 616 666 (Mobile)
Duke Street, Chelmsford, CM1 1TB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknT+GAACgkQfNTx9pWyKfxzPwCdECZn3IpotdQmYq+R2iXKGuBy
rJ8AoJign3fs/+ZF10gVkh8ULroaUmWP
=hZFG
-----END PGP SIGNATURE-----
More information about the Magick-bugs
mailing list