Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
I have a simple image gallery.

In order to extract the geotag from the exif I have created a custom tag. This works as expected.

What I would like is, as each new image is uploaded to the gallery, the value of 'gg_image' is fed into my custom tag and the results then used to prepopulate a 'latlong' editable region.

Code: Select all
<cms:editable name='gg_image' type="image"  />

<cms:editable name='blog_desc' type="text" value="<cms:exifgeo '<cms:show gg_image />' />" />

Ugly as sin, I know. I'm at a loss.
Hi,

No straightforward way I am afraid but, if one is really keen on doing it, there are events that Couch throws during the page save process that can be hooked on to stuff the extracted info into the region. That is to say, it will require custom programming.

Having said that, I have a question - since, as you mentioned, your custom tag can easily extract the EXIF info given an image, why can't you simply use that tag on the front-end to output what the (same) data stored in a separate editable region would have?

Could you please let me know?
I'm a long time user of CouchCMS and your speedy response is just another reason why.

The aim is to be able to extract the EXIF data from the image where possible but ultimately leave it up to the admin to provide it.

Either I force the admin to enter the lat/long every time (which might mean that they either duplicate or override the existing EXIF) or force them to use the front end as a means of finding out that the images does not contain any.

Do you mind me asking why Latitude and Longitude is not achievable using the native EXIF facility?
OK, I get it.

Could you please share the code for the custom tag you made to extract the EXIF data?
4 posts Page 1 of 1
cron