Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
XML image list generator
Old 01-16-2007, 11:49 AM XML image list generator
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Can someone please refer me to a program that could generate an xml file with a reference to all images within a specified folder? I have over 300 images to reference and I don't want to type them all in manually.

e.g.

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album title="Nature" description="Images of trees, lakes and flowers" lgPath="/gallery/album1/large/">
<img src="001.jpg" />
<img src="002.jpg" />
<img src="003.jpg" />
<img src="004.jpg" />
<img src="005.jpg" />
<img src="006.jpg" />
</album>
</gallery>

Thanks!
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
 
Register now for full access!
Old 01-16-2007, 11:59 PM Re: XML image list generator
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by Daman View Post
Can someone please refer me to a program that could generate an xml file with a reference to all images within a specified folder? I have over 300 images to reference and I don't want to type them all in manually.

The xml format isn't exactly the same as what you're looking for, but other than that, Exif Harvester can help.

http://forrestcroce.com/Software/ExifHarvester.html
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 01-18-2007, 01:19 PM Re: XML image list generator
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Hi, this is quick and dirty but, if you are using Linux, Unix, Mac, or have the cygwin package on windows, the following bash script would do it

Code:
#!/bin/bash

if [ ! "$2" ] ;
then
        echo "usage: genGallery title description"
        exit 2;
fi

title=$1
desc=$2
curDir=$(pwd)

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
echo "<gallery>"
echo "<album title=\"$title\" description=\"$2\" lgPath=\"$curDir\">"
ls *.jpg | sed "s/^\(.*\)$/<img scr=\"\\1\" \/>/"
echo "</album>"
echo "</gallery>"
then you could execute it with:
# ./genGallery "Nature" "Images of trees, lakes and flowers"
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 08:20 AM Re: XML image list generator
Experienced Talker

Posts: 41
Name: starlington
Trades: 0
http://www.softpedia.com/get/Authori...enerator.shtml

The XILG program is intended to automate the process of building simple thumbnail web pages. It has a very simple and self explanatory user interface.

Requirements:

· This program only runs on Windows XP and Windows .NET Server. I suppose you could try to get it to work on Windows NT 4.0 SP6, Windows 2000 and Windows 98/Me, but it requires the GDI+ libraries from Microsoft and 9x/Me will also require the Microsoft Layer for Unicode. If you don't have Internet Explorer 6 or above, you will need to install MSXML v3. There may be other requirements too. Use XP.
starlington is offline
Reply With Quote
View Public Profile
 
Old 01-29-2007, 02:10 PM Re: XML image list generator
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Thanks for all the feedback. I have to do it manual because the syntax is specific but these tools seem very handy and I will hang-on to them for future reference.
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-30-2007, 09:17 AM Re: XML image list generator
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
As a programmer, I always say never do anything manually more than once
;-)

good luck
willcode4beer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to XML image list generator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35192 seconds with 12 queries