# Php script to generate thumnails and create XML

**URL:** <https://forum.kirupa.com/t/php-script-to-generate-thumnails-and-create-xml/260325>\
**Category:** Uncategorized\
**Created:** [May 14, 2008, 1:43pm UTC](https://forum.kirupa.com/t/php-script-to-generate-thumnails-and-create-xml/260325 "2008-05-14T13:43:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoken](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@geoken](https://forum.kirupa.com/u/geoken)\
**Post date:** [May 14, 2008, 1:43pm UTC](https://forum.kirupa.com/t/php-script-to-generate-thumnails-and-create-xml/260325/1 "2008-05-14T13:43:53Z")

</div>

**[COLOR=“Red”][SIZE=“4”]JOB CLOSED[/SIZE][/COLOR]**-May 15th, 2008

I need a php script that will build the back end for my galleries.

I basically need it to go through all the pics in a directory/sub-directory and generate thumbnails, resize the original pic and create an XML (so the pics can be loaded into a Flash gallery).

I need the XML file to support categories. Basically a folder will represent a category, and the pics in that folder will represent pics in the category (this should all be represented in the XML file).

I don’t need an admin page, or an uploading page (I’ll handle that in flash). I also don’t need any front end to display the images. All I need is a script which will generate thumbs (if they don’t already exist), resize the pictures (if they’re above a certain size) and create an XML file.

---

<div class="post-metadata">

**Author:** ![Liammc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/liammc/32/1565_2.png) [@Liammc](https://forum.kirupa.com/u/Liammc)\
**Post date:** [May 14, 2008, 4:50pm UTC](https://forum.kirupa.com/t/php-script-to-generate-thumnails-and-create-xml/260325/2 "2008-05-14T16:50:01Z")

</div>

Sounds ok, I’d be happy to give it a go.

Will it just ideally be a single file which you run yourself to create everything? Send me a message if you want to discuss it further.

Thanks,

Liam.

---

<div class="post-metadata">

**Author:** ![geoken](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@geoken](https://forum.kirupa.com/u/geoken)\
**Post date:** [May 14, 2008, 5:00pm UTC](https://forum.kirupa.com/t/php-script-to-generate-thumnails-and-create-xml/260325/3 "2008-05-14T17:00:19Z")

</div>

Yeah, ideally it would be a single php file which would execute then output a single XML file.
