Can bridge output HTML strings?
Hi,
I dont know if it is possible to do this in Bridge CS5, but I suspect that it really should be possible so I ask, hoping that someone can enlighten me.
I maintain a few jQuery-driven image galleries whith frequent turnaround (images come and go, or are just changed a little bit, or their titles/dimensions are altered). Each gallery is based upon an HTML list with each image along with its thumbnail being held inside a list item, like so:
<li><a href="gallery/olja/images/11-O-3.jpg"><img src="gallery/olja/thumbnails/11-O-3.jpg" alt="Januari" width="75" height="53" border="0"/></a></li>
Since I often do things with the images, I would like to be able to do all image processing in Bridge assigning titles, cropping, etc., and then being able to select some images in the source folder, where images are too large to be used in the gallery and have bridge automatically do the following:
1) (this step is actually optional, I could do this myself in Photoshop if it is cumbersome to implement in the script) resize images to by me specified max width or max height, whichever is reached first (e.g. no side longer than 450px),
2) output the HTML that builds the list using the selected images, i.e.,
2a) putting filenames inside the string along with the width height of the images,
2b) putting the title assigned in Bridge inside the alt-tag.
This may seem a lot but I think it should be quite easy, I just don't find where to begin.
If I paraphrase my mp3-tagging software a template could look something like this:
<li><a href="gallery/olja/images/%filename%"><img src="gallery/olja/thumbnails/%filename%" alt="%title%" width="%width%" height="%height%" border="0"/></a></li>
%text within paratheses% is generated on the fly.
Do I need deep programming skills to be able to achieve this?
Thanks a lot for any help!
/g
Message was edited by: Guermantes
