Generate Photo Gallery XML for Spry with Adobe Bridge

Wanted to post a note to what I've discovered/worked out -- a
way to
generate a very useful photos.xml from Adobe Bridge. If you
use Bridge,
it's very easy to add titles, keywords, ratings -- all kinds
of metadata
that one might use in a photo gallery. Here it is in case
anyone wants
to use.
The script is based on one I found at the Adobe User to User
Bridge
Scripting Forum for exporting a CSV file.
Note 1: this particular script doesn't take into account
CDATA that
might exist in your metadata, like ampersands in your title.
I've just
avoided using those, but you could also have the script write
out a
CDATA node for that info instead.
Note 2: this script does not write out a thumbpath,
thumbwidth or
thumbheight attribute. But usually the thumbpath is the exact
same as
the regular "path" attribute, and the thumbwidth and
thumbheight are
just a ratio of the regular "width" and "height" attributes.
I added a
bit of JS to the gallery.js file to calculate those before
growing the
thumbnail on rollover.
Personally I'm using keywords as categories and titles as
captions and
sorting by rating (stars in Bridge), so here's the .jsx file
I created.
The script should be saved to the folder "StartupScripts" in
Program
Files/Common Files/Adobe.
Hope this is useful for others too!
#target bridge
if (BridgeTalk.appName == "bridge" ) {
// create menu
var menu = MenuElement.create( "command", "Export XML File",
"at the end
of Tools");
menu.onSelect = function(m) {
try {
// ask for the name of the output file
var f = File.saveDialog("Export XML file to:", "XML
File:*.XML");
if ( !f ) { return; }
// open filestream and write first line
f.open("w");
f.writeln("\<photos\>\r\r");
// get a list of all the visible thumbnails in Bridge
var items = app.document.visibleThumbnails;
for (var i = 0; i < items.length; ++i) { var item = items
f.writeln("\<photo path = \"" + item.name + "\"" + "\r" +
"width = " +
"\""+ getWidth(item) + "\"" + "\r" + "height = " + "\""+
getHeight(item)
+ "\"" + "\r" + "rating = " + "\""+ getRating(item) + "\"" +
"\r" +
"categories = " + "\""+ listKeywords(item) + "\"" + "\r" +
"caption = "
+ "\""+ getTitle(item) + "\"" + " \>" + "\r" +
"\<\/photo\>\r\r" ); }
f.writeln("\<\/photos\>");
f.close();
} catch(e) {
function getTitle(tn) {
md = tn.metadata;
md.namespace = "
http://purl.org/dc/elements/1.1/";
var varTitle = md.title;
return varTitle;
function getWidth(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/tiff/1.0/"
var varWidth = md.ImageWidth;
return varWidth;
function getHeight(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/tiff/1.0/"
var varHeight = md.ImageLength;
return varHeight;
function getRating(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/xap/1.0/"
var varRating = md.Rating;
return varRating;
function listKeywords(tn) {
md = tn.metadata;
md.namespace = "
http://ns.adobe.com/photoshop/1.0/";
var Keywords = md.Keywords;
var varKeywords = "" ;
for ( var i = 0; i < Keywords.length; ++i ) { varKeywords
= varKeywords
+ Keywords + ","; }
return varKeywords;

I updated the script so it exports an XML file from Bridge
with full
compatibility with the Spry Demo Photo Gallery, to use as
photos.xml.
It's at the same address:
http://www.imagicdigital.com/spry/bridge_export_xml.zip
To Use:
The script goes in the folder "StartupScripts" in Program
Files/Common
Files/Adobe.
Launch Bridge and browse to a folder that contains the files
you want in
your gallery -- the "source" folder, as it were.
Choose the menu command "Tools > Export XML for Spry
Gallery".
Type a name for your XML file in the Save dialog box, choose
a location,
and hit "Save".
In the dialog box that pops up, enter a max length/width for
your
thumbnails, in pixels. Some common sizes are "75" , "100" or
"125".
Hit "OK". You should see an alert pop up telling you "XML
file
successfully created!"

Similar Messages

  • My photos are not printing right with adobe manages color but works when i use printer manages color. never had any issues untill a week ago.

    my photos are not printing right with adobe manages color but works when i use printer manages color. never had any issues untill a week ago.

    We use CS6, yes we calibrate using x-rite. I have always had adobe manage colors when printing. This problem just occurred, all my settings are the same as they have been for years. The only thing we did lately is do an update to CS6. We thought it might be our printer but when we use the printer manages color it works fine, The problem with adobe manages color is it is not blending the light highlights like on top of the cheeks with the colors around the cheeks  and its putting a faint red between the two it just does not have a smooth transition. I printed a photo that I had printed 4 months ago with no issue, and this time it had the issue that I am dealing with now. Somehow the photo shop manages color is not getting the right info to my printer.  
    I set paper type
    set quality
    no color adjustment
    set my profile
    Teri

  • Can't delete images with adobe bridge for days , don't know how to fix this , can you please help ?

    Can't delete images with adobe bridge for days , don't know how to fix this ? Can you help please ?

    Thank you so much for sharing

  • Not seeing a DataType.ICON request when browsing with Adobe Bridge?

    Hi All,
    I have followed the instructions in the "Customizing the UI->Displaying Thumbnails" section of the Adobe Drive SDK documents, but I have a problem. When I browse through my drive with Adobe Bridge, I am not getting the expected request for DataType.ICON for any of my items; when I call item.getDataTypes() from my
    IGetAssetsHandler, I only see the DataTypes [BASIC, ASSET_PROPERTY].
    Any ideas as to why this might be is happening?

    In your ConnectHandler implementation, add the following capability:
    capabilities.add(Capability.READ_XMP_METADATA);
    I spent a week to figure it out.

  • Does Adobe Photoshop Elements come bundled with Adobe Bridge?  Or is Bridge a separate purchase?

    Does Adobe Photoshop Elements come bundled with Adobe Bridge?  Or is Bridge a separate purchase?

    Apparently there was a change in Elements 9.
    From the PsE forum:
    Bridge is no longer included with PSE. If you buy PSE anywhere except the Mac App Store you get Organizer instead. The app store version doesn't have organizer.
    and from a link therein:
    A lot of Mac folks are unhappy about Adobe’s decision to include Organizer with Elements 9 in place of Adobe Bridge, which came with previous Mac versions. (The Organizer used to be just for Windows.) If you have an older version of PSE that included Bridge, you can still use it with Elements 9…

  • I have problem with adobe bridge cs6. Every time I open it Bridge tells me to Purge Cache. I have CS

    I have problem with adobe bridge cs6. Every time I open it Bridge tells me to Purge Cache. I have CS6 on two computers and it works fine on one of them. I have tried to reinstall it without succeeding to fix the problem. Does anyone have the same problem and a solution to it?
    "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation."

    You must have a Mac.  Try this.
    Quit Bridge, from user library (NOT system and root library) preferences folder find and delete the com.adobe.bridge5.plist file manual. Do this also in same user library caches folder (Caches/Adobe/Bridge CS6) and inhere find and the folder called 'cache' and drag it to the trash.
    restart Bridge holding down option key and choose reset preferences, then try again.

  • Does RM29.90 per month photography package with photoshop and lightrooms come with Adobe bridge app as well?

    Does RM29.90 per month photography package with photoshop and lightrooms come with Adobe bridge app as well?

    Does RM29.90 per month photography package with photoshop and lightrooms come with Adobe bridge app as well?

  • Problems with flash photo-gallery xml

    Hello,
    I need help. I have bought your photogallery template and i
    am having problems with it.
    When i test the gallery on my portfolio website (html) all it
    comes up is the background, the pictures and thumbnail pictures
    wont load. I am putting the files in the right folder and using the
    swf in an html (dreamweaver cs3). what is it happening?
    I dont know xlm. Plz give me a hand??
    Thanks

    Hi DZ,
    I am testing it locally. I didn't even upload anything yet.
    And yes, i put the swf into my html portfolios page (dreamweaver
    cs3) and tested locally. the pictures wont show up, only the bg for
    the photo-gallery. I bought this template here at the
    exchange

  • Editing XML for SPRY Demos

    Hello All,
    Apologies in advance if this is a topic that has been covered
    in the past. I searched through the previous posts, but didn't see
    what I was looking for.
    I am pretty new to SPRY, but have been able to put together a
    few different apps that I think are interesting. These are mostly
    based off of the demos I have seen on here such as the products
    & photo gallery demos. After completing these though, the first
    thing that pops in to my mind is how to build a backend edit tool
    that would allow a potential client to edit the underlaying XML
    that drives these apps without having to have me perform updates
    for them. While looking around online I have seen several possible
    solutions, but they all seem to have one problem or another.
    What I am wondering is if there is an easy way to set up a
    form that will edit/add/delete different entries in the XML files.
    I would prefer to use PHP if at all possible. Of all the solutions
    I have seen thus far, it seems that they all require me to use
    either ASP, .NET, MYSQL or some other database system to extract
    data from and create the XML dynamically. This is all well and
    good, but I seem to have clients that have lots of different
    hosting environments, so all of the above mentioned options seem to
    be a bit to specialized for my needs. I'm really thinking that a
    PHP solution that edits the XML file directly would be able to
    cover more ground.
    Is this even possible? Any direction that you could point me
    in would be greatly appreciated!
    Thanks!!!

    Hello,
    As Kin said in the above post, if you are using HTML data
    sets InContexEditing would be great service to use.
    But what if you don't.. I doesn't mean it cannot be done with
    XML and databases. While i was Adobe MAX 2008 milano I spend my
    spare time building an example that allows users easy CRUD with
    Spry. You can also purchase a system but why do so if you already
    have all tools you need :)
    http://www.spry-it.com/examples/crud/
    Its very early stage of this example but I got all basic
    actions covered.
    Inline edit that posts the changed data to a server file. And
    places the returned server value inside your data set and updates
    the data set. (updating the data set is not necessary but i just
    added it to show that the data is actually updated inside the data
    set to)
    You can also delete rows and duplicate rows. I did not tie a
    server side action to those yet. But it would be easy to do as I
    did with inline Editing function. I fully commented the
    SpryFullCRUD.js so it might help you out..
    If you don't understand it feel free to ask questions, and I
    hope it helps you out a bit. I will be writing a large article
    about this and hope this example give you some inspiration.

  • Creating a photo gallery / portfolio for a client to manage (CMS & Business Catalyst)

    I have been asked to create a website for a client, the client is a photographer and wants a site to promote her nursery school photography business. She would like to be able to manage the site herself using the BC dashboard, uploading images as and when needed. I use Muse to create sites and have informed the client that for any kind of CMS they need to host with Business Catalyst.
    My issue is creating a relatively limitless photo gallery / portfolio. As I understand it a client can upload and change images on their site using the BC dashboard, providing there is a slot available to do so. I believe Business Catalyst has a photo gallery module on their Webmarketing package, would this be what I am looking for? Failing that are there any good workarounds available for my client using Muse alone?
    In the future the client is looking for secure zones within the site and also an online ordering system, but right now it's a fairly simple promotional site with a good gallery of pics.
    I posted a similar question last week, someone very kindly suggested Smugmug, I looked into a separate solution (including Smugmug) but it's not suitable in this case and I would rather stick to Muse, BC and Adobe.

    Hi
    Yes, you can use Photo Gallery module, where your client would be able to upload new images from site backend and update the module. Also with photo gallery there are other parameters which they can use for image display.
    https://www.youtube.com/watch?v=x-MuLyhxS5o
    https://www.youtube.com/watch?v=Hg8pB1cLvnk
    For future preferences , your client can setup secure zones, online shop etc from site admin.
    Let me know if you have any questions.
    Thanks,
    Sanjit

  • PSE 5-send photo gallery to own website with FTP

    I'm a newcomer to PSE and
    want to send a photo gallery to a website which i am setting up. The PSE instructions ask for FTP details so that it can send the information to a folder with the host. I propose setting up the website using an old version of Dreamweaver MX2004. Can I import this folder straight in to Dreamweaver please, and does anyone know what type of file it is? Is it a HTML file?
    Many thanks

    The FTP folder contains many types of files. Some of which maybe html,xml etc.

  • Tutorial needed: Nivo Slider powered by Photo Gallery XML feed

    I'm in need of some help.  I've setup my Photo Gallery, generated the xml feed.  I went to the Nivo slider site, but don't see instructions of how to make it read the xml file.

    So this is the information that I'm using which leads me to believe I can use the xml feed to populate the slider.
    http://forums.adobe.com/docs/DOC-1780
    . You can now style this using your own CSS or use one of the many free, jQuery-based Gallery/Slideshow plugins available on the web, such as Galleria, the jQuery Cycle plugin, or InnerFade.
    When using a seperate jQuery plugin on top of this set up, make sure you place and execute the plugin script after the code we just inserted, so that our LI items are generated before it attempts to process and manipulate them.
    Am I right and it just takes the proper coding?

  • Generate a File XML in Forms with PL/SQL

    Hi Friends!
    I need to generate a file XML and validate it with a XSD schema!
    I see some ways to generate a file with a QUERY.
    But i cant generate a file with a Query because my datas existing in diferent tables and isn't possible to create in a query! I need to construct the XML step by step... creating the nodes and subnodes... setting values to the nodes and so on!
    I see a class java called by Marshall and i created a bean to generate XML but it is so slow even in a powered server!
    How can i do this in PL/SQL?????
    Somebody can help me!!

    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmldom.htm#sthref10098
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb10pls.htm#sthref1389
    Regards.

  • Flash photo gallery .xml question (Firefox)

    I made a photo gallery using SimpleViewer (
    http://www.airtightinteractive.com/simpleviewer/)
    The gallery worked perfectly in both IE and Firefox, but I
    made some changes and added some new photos to the gallery more
    than 24 hours ago. The changes showed up right away in IE, but in
    Firefox, it still shows my 'old' gallery. I can still see the
    gallery fine. The file is .xml and I was wondering if there was a
    code or something I could use (maybe in the html file) so that
    Firefox would be more compatible and make the changes
    quicker.

    I had to go into firefox and clear the cookies and that
    worked. But, there has to be an easier way to do this. I don't want
    to tell people on my site that every time the photo gallery is
    updated, they have to clear the cookies in the foxfire browser to
    see them.
    Help!

  • Photo Gallery Software for Mac OS X Server

    I'm porting my Linux server infrastructure over to Mac OS X Server. I've successfully moved over my DNS, Mail and most of my web sites to Mac without a problem. However, the last website is causing me a bit of pain. In Linux I was using Gallery 2 (http://gallery.menalto.com/), but I'm not sure how to get this to work on Mac OS X. In particular there are a bunch of dependencies that I'm not sure exist in Mac (ffmpeg, etc.)
    * Is there an alternative photo gallery software that people use which may install/work better on the Mac? We have wiki and blog services in the Web Server Admin pane, but I don't see a photo gallery service.
    * Has anybody had success in using gallery2 over to the Mac? What dependencies were needed and how did you find them?
    Thanks,
    Scott

    Hi
    For me it has to be RumpusFTP Server:
    http://www.maxum.com/Rumpus/
    It has a secure web interface - no need to open ports 20, 21. No need for dedicated FTP client software for uploading and downloading. Supports the most commonly used browsers. Multi-platform support and can be installed on a standard client OS.
    Tony

Maybe you are looking for

  • Follow up material with different base unit of measure

    Hi all, I have the BOM with material Mat1 as a component. The base unit of measure of Mat1 is KG. Is it possible to replace Mat1 with Mat 2 material in MRP once the Mat1 warehouse stock is depleted. The base unit of measure of Mat 2 is KGK. The requi

  • Converted 1140 AP can't join the WLC 5508

    Hello! Please, help me to sort my problem out. We have bought autonomous APs   AIR-AP1141N-E-K9 and converted them to the lightweight mode, but they cannot join the WLC 5508. The errors are below. There were NO problems with the LAPs that were bought

  • Display an audiobook in the correct order

    I've an audio book divided in 6 CD. How can I do to make itunes keep them in the right order?

  • Problem with updating ipod

    I just recently downloaded Itunes onto this computer and It wont let me update the ipod at all unless I restore. It comes up with an error message when the Ipod is plugged in: "iTunes has detected an iPod in recovery mode. You must restore this ipod

  • Installing 9.1 after Panther

    Hello All, I read Llamos' post but I have another question. I reformatted and wrote zeros to this drive and partitioned it twice. I already have Panther installed on the under 8 gig partition, but I want to add 9.1 on the same volume. Is this going t