We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Gallery EXIF - Tags in extension?

Development and Programming

gabrys's avatar
gabrys
6 posts
18 years ago
gabrys's avatar gabrys

I’ve made extension which reads EXIF from jpegs added to gallery (and stores this data in database), allows editing exif in database. (actually i had to use 4 hooks… heh).

Now i’d like to add support for custom tags - used in templates. Is it possible with extension or I have to write a plugin? it is not big problem, I’m only curious…

       
gabrys's avatar
gabrys
6 posts
18 years ago
gabrys's avatar gabrys

ok, i checked User Guide. and everything is clear. i need to write a plugin 😊

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
18 years ago
Lisa Wess's avatar Lisa Wess

Have you considered the Tag module from solspace.com? The current version doesn’t support the Gallery, but Tag 2 (currently in beta) does.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
18 years ago
Ingmar Greil's avatar Ingmar Greil

Yes. An EXIF extension for Tag would be awesome.

       
gabrys's avatar
gabrys
6 posts
18 years ago
gabrys's avatar gabrys

Tag looks good, but what i need is on the one hand plain and on the other… specific - exif in offical gallery. Extension which adds support of exif in gallery is mostly finished (one or two more features, lang files). I saw that there is an exif plugin but i was always paranoid of code optimalization, and i couldn’t stand constant exif reading from jpeg (not to mention lost exif data - result of image processing in GD/GD2) that’s why i decided to write extension which stores exif data in DB.

screenshot + little extra history 😉 http://gbt.kuzniki.net/exifextension.html

       
gabrys's avatar
gabrys
6 posts
18 years ago
gabrys's avatar gabrys

finished. (only code clean-up remaining)

few additions to exif extension (like “Enable exif” option, which through js shows/hides exif value table) and Gallery EXIF plugin, example:

{exp:gallery_exif}
{if exifavailable == "yes"}
Exif data available: {exifavailable}

Camera producer: {if make == "Canon"}Canon is the best!{if:else}not canon...{/if}

Camera model: {model}

Flash:{if flash == "yes"}fired ({flashdetails}){if:else}not fired{/if}

Exposuremode: {if exposuremode == "Tv-priority"}{exposuremode}{if:else}not Tv-priority (to be exact: {exposuremode}){/if}

ISO speed: {isospeed}

{if:else}
Exif data not available
{/if}
{/exp:gallery_exif}

(within exp:gallery:entries)

would produce:

Exif data available: yes
Camera producer: Canon is the best!
Camera model: Canon EOS 10D
Flash:not fired
Exposuremode: not Tv-priority (to be exact: Program)
ISO speed: 1600

how should i call my “Gallery EXIF”? it is extension+plugin, so… expansion? 😊

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
18 years ago
Lisa Wess's avatar Lisa Wess

No, expansion is something special to EE. Combo Pack or some such?

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
18 years ago
Ingmar Greil's avatar Ingmar Greil

I like “combo”. It’s not the first one, either.

       
gabrys's avatar
gabrys
6 posts
18 years ago
gabrys's avatar gabrys

anyone would like to test Gallery EXIF? extension and plugin still require code optimalization and clean-up. but should work.

one more thing to do is language file. (it will introduce one problem, because now in plugin you can use conditionals like this: {if flashdetails == “Red eye”) but in different language it wouldn’t be “Red eye”. Maybe i’ll add paremeter in {exp:gallery exif}, for example english_conditionals=”yes”. Setting it to yes would use english in IF statements but translated strings in {flashdetails}.

OH! and one more - important - thing. delete_entry function in mcp.gallery.php does not have hooks. So extension can not remove exif data record from DB when related gallery entry is removed. There are two solutions for this: hook in delete_entry in next EE version or manual triggered “check & delete unused records” through Gallery EXIF extension settings…

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
18 years ago
Mark Bowen's avatar Mark Bowen

Hi gabrys,

Would love to get a look at this extension and plugin if at all possible. All sounds really good.

Thanks.

Mark

       
gabrys's avatar
gabrys
6 posts
18 years ago
gabrys's avatar gabrys

Mark, check your PM

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell
anyone would like to test Gallery EXIF? extension and plugin still require code optimalization and clean-up. but should work.

I would like to check it out as well to see how it compares to the other EXIF plugin.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

I would still like to see this if you have it around.

Thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.