Thumb::URI file:////
Posted: 2009-11-12T15:03:37-07:00
If I generate a thumbnail like so:
The information required by the freedesktop.org thumbnail specification http://jens.triq.net/thumbnail-spec/creation.html is inserted in to the image:
Or so I thought. If I generate a thumbnail using ImageMagick and save it with the appropriate filename in the appropriate directory, then I start up a GNOME application that has cause to use the thumbnail, GNOME replaces the thumbnail with a new one with the same filename.
It took me a while to spot it, but the URI that ImageMagick inserts has too many forward slashes at the start - four when it ought to be three.
Code: Select all
$ convert /Users/mike/Documents/DSC01578.JPG -thumbnail 128x foothumb.png
Code: Select all
$ identify -verbose foothumb.png | grep "Thumb::MTime"
Thumb::MTime: 1250455570
$ identify -verbose foothumb.png | grep "Thumb::URI"
Thumb::URI: file:////Users/mike/Documents/DSC01578.JPG
It took me a while to spot it, but the URI that ImageMagick inserts has too many forward slashes at the start - four when it ought to be three.
Code: Select all
$ identify -verbose foothumb.png | grep ImageMagick | grep Version
Version: ImageMagick 6.5.7-0 2009-11-08 Q16 http://www.imagemagick.org