stacey icon indicating copy to clipboard operation
stacey copied to clipboard

Add possibility to grab image descriptions from txt files

Open ponychicken opened this issue 14 years ago • 3 comments

Useful since it can be hard to edit the iptc quickly.

ponychicken avatar May 26 '11 18:05 ponychicken

This is great, I was looking for this just a few days ago. (ref. http://getsatisfaction.com/stacey/topics/images_captions-13vahh )

I'll give it a run in my test branch!

adriencater avatar Nov 27 '11 19:11 adriencater

Plugged this into my fork, and it works great. The only thing I changed was the variable name associated with this data:

$this->data['@sidecar'] = $descM;

I though "sidecar" was a good indicator of the provenance of the data, and wouldn't interfere with the data coming in from the IPTC.

adriencater avatar Nov 28 '11 15:11 adriencater

Hi, i found another way to add descriptions to images here: https://github.com/splendid/stacey/commit/4cc609dc755cc36eb78c71c8ceb6b0656d23b56a I changed the suggested "captions.stacey" to "captions.txt" as it seems more logical.

But, a good solution would be to be able to add captions in the same document as the project.txt with the matching name of the image, or even other assets.

For example in a text you would have:

date: 2011

content:

Lorem Ipsum

image1.jpg:

Caption text

image2.png:

Some text

folder.zip: Some text

etc.

I really wish i knew some php, but i do not know how to do this myself. Anyway good luck with your site.

O

o-l-e avatar Nov 28 '11 20:11 o-l-e