Opened 12 years ago
Closed 10 years ago
#8745 closed bug (fixed)
Tracker not showing image dimensions.
Reported by: | jstressman | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Tracker | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
You can add additional columns of information in Tracker, and for image file types you can add things like the width and height. I've tried adding these as it makes my work a lot easier, but none of them are showing any information. They're all just dashes ( - ).
hrev44335 (gcc2h)
Attachments (6)
Change History (17)
by , 12 years ago
Attachment: | NoDimensions1.png added |
---|
comment:1 by , 12 years ago
Tracker just shows the attributes that are already there on disk, it doesn't know how to populate the data on its own. For this to work the information would need to be extracted and transferred to attributes. There are utilities on Bebits/Haikuware which do just that for audio files to extract ID3 tag data into BFS attributes, but I don't know if something similar exists for images or not.
follow-up: 5 comment:2 by , 12 years ago
http://haikuware.com/directory/view-details/multimedia/graphics/icon-tools/thumbnail
That claims to be able to write the necessary information, but even enabling the relevant options I still am not seeing the dimensions. :(
by , 12 years ago
Attachment: | ImageAttribsMissing1.png added |
---|
follow-up: 4 comment:3 by , 12 years ago
And is it just me, or is it odd to have Tracker natively allow selecting to show information that Tracker cannot actually show without installing some third party application?
It seems to me that it shouldn't offer the option to do something it can't do unless that functionality is actually present. eg; don't show it unless the relevant add-ons are actually installed... or better yet don't show it unless the Tracker can automatically populate that information itself. Otherwise it's just poor design that confuses new users.
comment:4 by , 12 years ago
Replying to jstressman:
And is it just me, or is it odd to have Tracker natively allow selecting to show information that Tracker cannot actually show without installing some third party application?
Tracker's role is simply a filesystem browser, it doesn't try to be everything-and-the-kitchen-sink. It gets the information about what attributes are potentially available for a file from the MIME database, and that's what it makes available as options. The assumption has always been that the apps writing the files will populate those attributes, assuming they even apply. Ideally it would be nice to possibly extend the mime sniffing mechanism to accept plugins to also extract information where possible but that's not easily possible with Tracker's current design (the code dates back to very early versions of BeOS and has quite a lot of cruft as a consequence).
comment:5 by , 12 years ago
Replying to jstressman:
http://haikuware.com/directory/view-details/multimedia/graphics/icon-tools/thumbnail
That claims to be able to write the necessary information, but even enabling the relevant options I still am not seeing the dimensions. :(
"Thumbnail" adds the attributes GRAFX:Height and GRAFX:Width while what you see in Tracker are the attributes of the supertype "image" Media:Width and Media:Height. Thumbnail's prefs allow to add their variation of attributes to the supertype, but I don't feel to sully my system now... :) Source is included and, should it compile, could be "ported" easily to Haiku.
by , 12 years ago
Attachment: | Thumbnailer modified.zip added |
---|
I changed the attribute names in libThumbnail.so to Media instead of GRAFX using DiskProbe.
comment:6 by , 12 years ago
When Thumbnailer was made, there were no standard Height and Width attributes. The file I attatched changed the name of the attributes used by Thumbnailer to the standard Media:Height and Media:Width used bu HAIKU.
comment:8 by , 12 years ago
I've updated the original package to include this change for both the English and German versions, as well as for the included lib source. I've also updated the documentation to be html5 level (and improved readability a bit), and updated the images in that to reflect Haiku. Finally, I've added a new HVIF icon for Haiku to the package as well (and added it to the binaries).
comment:9 by , 10 years ago
MediaPlayer sets the media attributes for the opened files. The attributes are "Media:Length", "Audio:Bitrate", "Video:Bitrate". In the class MainWin.cpp there is this comment:
// Set some standard attributes of the currently played file. // This should only be a temporary solution.
Should ShowImage do the same for the attributes width and height?
comment:10 by , 10 years ago
I think the idea was to have some kind of a server that does this kind of stuff. Since we don't really have that (Clemens worked on an index_server once, but didn't really complete it), I'd be fine with having ShowImage do that for now.
no dimensions on any of the images in Tracker