From: Chris S. <chr...@ya...> - 2003-06-13 01:45:31
|
How hard would it be to modify IDS to use EXIF comments and titles in photo displays? A follow-up question - is it possible to have the IDS search function search EXIF comments and titles? I'd rather save photo data in the EXIF fields than in an external database or text files. I'm not a perl programmer, though I've done a fair bit of PHP and I think I could make a stab at modifying the photo pages to use EXIF data on the displays. If I did that, would you include it in the source so others could take advantage of it? Note that I definitely am not skilled enough to modify the search function to use EXIF. Thanks. Except for a bit of EXIF info, IDS does everything I want from a photo gallery. Chris Shaffer chr...@ya... __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: Jeff M. <jef...@vi...> - 2003-06-14 15:14:25
|
On Thu, 2003-06-12 at 21:45, Chris Shaffer wrote: > How hard would it be to modify IDS to use EXIF > comments and titles in photo displays? A follow-up > question - is it possible to have the IDS search > function search EXIF comments and titles? I'd rather > save photo data in the EXIF fields than in an external > database or text files. >=20 I don't think this would be all that hard. I wish I could point you to where this could be done, but at the moment I don't know. > I'm not a perl programmer, though I've done a fair bit > of PHP and I think I could make a stab at modifying > the photo pages to use EXIF data on the displays. If > I did that, would you include it in the source so > others could take advantage of it? Note that I > definitely am not skilled enough to modify the search > function to use EXIF. A patch would be welcomed. --=20 Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |
From: Chris S. <chr...@ya...> - 2003-06-15 02:34:48
Attachments:
mkGallery.pl
|
Well, it doesn't look like it's going to be as easy as I thought. Image::Info is supposed to extract a field named Comment. Unfortunately, this is null. In fact, you already wrote support to add the Image::Info Comment field to the comments from the txt file. I tried it with both jpeg-comment (internal to jpeg) and EXIF Comment (an EXIF data field) and neither worked. I can see both comments using Exifer on my Windows box, but neither is extracted by Image::Info. I did find a perl script that uses jhead to extract data and write it out to a text file - it's attached to this message and comes from http://sourceforge.net/projects/mig/ . At this point, I'm going to sign off. It doesn't look like there's anything I can do without learning a lot more perl :( Chris __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Jeff M. <jef...@vi...> - 2003-06-15 17:56:38
|
On Sat, 2003-06-14 at 22:34, Chris Shaffer wrote: > At this point, I'm going to sign off. It doesn't look > like there's anything I can do without learning a lot > more perl :( >=20 Before you give up, do the comments appear in IDS at all? With the photo's I have, IDS shows image type, size, make, model and other details. This is shown as uneditable info. From what I understood of your request is that you wanted this in the comments field instead. Oh, wait, I see what you mean now, your saying the EXIF also allows comments and titles as additional info. This may be a image info bug if you are not able to get data for those fields. - Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |
From: Chris S. <chr...@ya...> - 2003-06-15 22:24:37
|
> Before you give up, do the comments appear in IDS at > all? With the > photo's I have, IDS shows image type, size, make, > model and other > details. This is shown as uneditable info. From what > I understood of > your request is that you wanted this in the comments > field instead. > > Oh, wait, I see what you mean now, your saying the > EXIF also allows > comments and titles as additional info. This may be > a image info bug if > you are not able to get data for those fields. Yes, you're right - there appears to be a bug in Image::Info. EXIF has a Comment field. There is also another non-EXIF field named JPEG-Comment which is part of the JPEG/JFIF specification. Image::Info apparently has a bug that prevents it from accessing either of these fields. In IDS 0.82, you make reference to the Comment field on line 696 of /ids/index.cgi and attempt to merge it with the contents of the text comments saved by IDS. However, since Image::Info always returns null for Comment, the IDS code on line 696 doesn't do anything. There is other useful JPEG info such as Title, Keywords, Caption, Categories stored in the IPTC metadata. See http://multipart-mixed.com/photo/iptc.html for a perl script that extracts IPTC data. Chris __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Jeff M. <jef...@vi...> - 2003-06-16 01:55:13
|
On Sun, 2003-06-15 at 18:24, Chris Shaffer wrote: > Yes, you're right - there appears to be a bug in > Image::Info. EXIF has a Comment field. There is also > another non-EXIF field named JPEG-Comment which is > part of the JPEG/JFIF specification. Image::Info > apparently has a bug that prevents it from accessing > either of these fields. In IDS 0.82, you make > reference to the Comment field on line 696 of > /ids/index.cgi and attempt to merge it with the > contents of the text comments saved by IDS. However, > since Image::Info always returns null for Comment, the > IDS code on line 696 doesn't do anything. >=20 ok > There is other useful JPEG info such as Title, > Keywords, Caption, Categories stored in the IPTC > metadata. See > http://multipart-mixed.com/photo/iptc.html for a perl > script that extracts IPTC data. ok, thanks for the pointer. I'm inclined to see if we can get the Image::Info folks to include these fields before adding code to IDS to handle this. If the Image::Info folks won't be bothered then it could be added to IDS. --=20 Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |
From: Chris S. <chr...@ya...> - 2003-06-16 14:26:18
|
> > There is other useful JPEG info such as Title, > > Keywords, Caption, Categories stored in the IPTC > > metadata. See > > http://multipart-mixed.com/photo/iptc.html for a > perl > > script that extracts IPTC data. > > ok, thanks for the pointer. I'm inclined to see if > we can get the > Image::Info folks to include these fields before > adding code to IDS to > handle this. If the Image::Info folks won't be > bothered then it could be > added to IDS. OK, but either way I don't think you'd need to add much to IDS. It's just a question of using Image::Info or using Image::IPTCInfo (or using both), right? Chris __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Jeff M. <jef...@vi...> - 2003-06-16 14:59:01
|
On Mon, 2003-06-16 at 10:26, Chris Shaffer wrote: > OK, but either way I don't think you'd need to add > much to IDS. It's just a question of using > Image::Info or using Image::IPTCInfo (or using both), > right? > Correct, I'm just trying to keep the module count down if possible. -- Jeff Macdonald <jef...@vi...> Into birding? Check out http://www.migratus.com |
From: Techwolf <Tec...@at...> - 2003-06-14 18:04:29
|
On Thu, 2003-06-12 at 20:45, Chris Shaffer wrote: > Thanks. Except for a bit of EXIF info, IDS does > everything I want from a photo gallery. There is a fuction/liberary/externel/how_ever_you_want_to_call_it that will return all EXIE stuff. "jhead is a public domain EXIF parser. Source, linux binaries, and windows binaries can be found at <a href=http://www.sentex.net/~mwandel/jhead/index.html>the jhead homepage</a>" -- Techwolf Tec...@at... http://www.techwolf.net/index.html PGP public keys on web site. |
From: Chris S. <chr...@ya...> - 2003-06-15 00:36:53
|
Right, but IDS is already extracting this data using Image::Info on the image.html and imageSF.html pages. (By the way, what is the difference between those two pages?) Image::Info also extracts the EXIF Comment. Copying and modifying this code is within my skills, and I'm currently editing /ids/index.cgi and trying to make a Ziggo2 theme that will implement it. Actually, from what I can tell, Image::Info is more useful than jhead, as it is perl and extracts data from multiple file formats. See http://search.cpan.org/author/GAAS/Image-Info-1.12/lib/Image/Info.pm . However, it doesn't extract IPTC data, which would probably be more useful. And it also doesn't make the EXIF Comment (or other EXIF data) searchable within the IDS search utility. Both of those are beyond my capabilities at this point. Perhaps those features could be added to the RFE for IDS 2.0? Chris --- Techwolf <Tec...@at...> wrote: > On Thu, 2003-06-12 at 20:45, Chris Shaffer wrote: > > Thanks. Except for a bit of EXIF info, IDS does > > everything I want from a photo gallery. > > There is a > fuction/liberary/externel/how_ever_you_want_to_call_it > that > will return all EXIE stuff. > > "jhead is a public domain EXIF parser. Source, linux > binaries, and > windows binaries can be found at <a > href=http://www.sentex.net/~mwandel/jhead/index.html>the > jhead > homepage</a>" > > > -- > Techwolf > Tec...@at... > http://www.techwolf.net/index.html > PGP public keys on web site. __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Jeff M. <jef...@vi...> - 2003-06-15 01:08:56
|
On Sat, 2003-06-14 at 20:36, Chris Shaffer wrote: <snip> > However, it doesn't extract IPTC data, which would > probably be more useful. And it also doesn't make the > EXIF Comment (or other EXIF data) searchable within > the IDS search utility. Both of those are beyond my > capabilities at this point. Perhaps those features > could be added to the RFE for IDS 2.0? >=20 If the data is cached, it should be trivial to make it searchable. However, here is my list that I will be working on (from earlier emails with Ashley): - Admin Maintenance o Able to delete albums (this includes their contents) (in CVS) o Able to move albums/images around (in or out of other albums) o Album locking (password) (might be deferred to IDS 2.0) o Album hiding (not necessarily locked, just hidden, unhide later) o Web based preview maker - current method will eat resources - General Controls o Better module control (less modules if possible) =20 I will accept patches for other things if the patch isn't to intrusive. Hopefully Ashley will formalize IDS 2.0. It will most likely be a complete re-write. My goal is to get the current IDS stable and slightly more functional. --=20 Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |