Can anyone help me to use a python to create an HTML photo gallery
generator. When it's finished, it will be able find all the picture
files (i.e. .jpg, .gif. .png files) in any given folder on the
computer, automatically create smaller thumbnails for each image, and
then generate a complete HTML file that displays a clickable image
gallery. When viewed in a web browser, the HTML file will display the
thumbnails in a neatly formatted table, and if you click on one of the
thumbnails the full-size image will appear.
Thanks 4 1779
sepgy writes: Can anyone help me to use a python to create an HTML photo gallery generator. When it's finished, it will be able find all the picture files (i.e. .jpg, .gif. .png files) in any given folder on the computer, automatically create smaller thumbnails for each image, and then generate a complete HTML file that displays a clickable image gallery. When viewed in a web browser, the HTML file will display the thumbnails in a neatly formatted table, and if you click on one of the thumbnails the full-size image will appear.
Thanks
Your script is meant to create something like this? http://home.hccnet.nl/gj.den.besten/...rzicht_01.html
A few months ago I wrote this script to get familiarized with Python. It
has a few disadvantages:
* It is not written in English (in Dutch actually).
* Written using a procedural/modular programming style.
No classes are used, so it is not very "Pythonic"
* Written to meet my needs to get pictures published on my website.
* No GUI.
When I get rid of the first two disadvantages, I will publish the
sourcecodes on my website. It will be GPL'ed.
So far, I tested it on Linux and WinNT and it seems to work fine. It
uses the "Python Imaging Library" instead of "ImageMagick". Using PIL
gives it a better performance.
There is another option: http://info.linspire.com/lphoto/
This is an Open Source application, built using Python. If you can get
the source, this may be your best choice.
Gert-Jan
--
Homepage: http://www.GJdenBesten.nl ev*******@hotmail.com (sepgy) wrote in message Can anyone help me to use a python to create an HTML photo gallery generator. When it's finished, it will be able find all the picture files (i.e. .jpg, .gif. .png files) in any given folder on the computer, automatically create smaller thumbnails for each image, and then generate a complete HTML file that displays a clickable image gallery. When viewed in a web browser, the HTML file will display the thumbnails in a neatly formatted table, and if you click on one of the thumbnails the full-size image will appear.
Hello,
You want to look at this: http://www.uselesspython.com/thumbnail.py
I also did this very thing when i first started learning Python.
Found it quite educational and learned much in the process.
Here was my try at 'improving it': http://bellsouthpwp.net/m/e/mefjr75/python/Thumbz.py
You can see my dumb newbie code , of course that was two years ago ;)
There are others out there too try thumbnail.py in a Google search sometime ;) Thanks
your welcome ...
HTH,
M.E.Farmer
sepgy wrote: Can anyone help me to use a python to create an HTML photo gallery generator. When it's finished, it will be able find all the picture files (i.e. .jpg, .gif. .png files) in any given folder on the computer, automatically create smaller thumbnails for each image, and then generate a complete HTML file that displays a clickable image gallery. When viewed in a web browser, the HTML file will display the thumbnails in a neatly formatted table, and if you click on one of the thumbnails the full-size image will appear.
Once I had similar idea -- I planned to use PIL for generating
thumbnails and some templating/transformation library for generating
HTML. It all ended up with HTMLTemplate
( http://freespace.virgin.net/hamish.s...template.html), as it
is simple and compact.
--
Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/
sepgy wrote: Can anyone help me to use a python to create an HTML photo gallery generator. When it's finished, it will be able find all the picture files (i.e. .jpg, .gif. .png files) in any given folder on the computer, automatically create smaller thumbnails for each image, and then generate a complete HTML file that displays a clickable image gallery. When viewed in a web browser, the HTML file will display the thumbnails in a neatly formatted table, and if you click on one of the thumbnails the full-size image will appear.
Note that with the EXIF.py tool you can extract existing thumbnails
stored inside JPEG or TIFF files without generating them yourself, which
is much faster.
Most digital cameras nowadays generate these thumbnails...
David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jacek Generowicz |
last post by:
Where can I find concise, clear documentation describing what one has
to do in order to enable Python's internal help to be able to provide
descriptions of Python keywords ?
I am in a situation...
|
by: Joh |
last post by:
hello,
i'm trying to understand how i could build following consecutive sets
from a root one using generator :
l =
would like to produce :
, , , ,
|
by: rdsteph |
last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and
others who are learning Python. Each episode focuses on one aspect of
learning Python, or one kind of Python programming, and...
|
by: sumi |
last post by:
I am very new to python , I have small query could some one help me.
every time I get a new load i need to do few things like creating some
dir, changing some file contents and moving some files ,...
|
by: treelife |
last post by:
I'm getting and internal server error when | run the following
mod_python script. I am actually trying to run Django.
Script:
from mod_python import apache
def handler(req):...
| |
by: tonydevlin |
last post by:
I am creating a workflow in plone using argouml and archgenxml. I have been
following the steps on the site:-...
|
by: cuties |
last post by:
Hi all....
i'm very new to this programming language. i'm required to fulfill this task in the company i'm doing my practical. i hope i can get guide for my problem...
Here is the script i...
|
by: Luis Speciale |
last post by:
Hi u all :
I'm trying to build mod_python in Leopard 10.5.4 with a cvs version from
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
I have
$ python
Python 2.5.2...
|
by: Luis Speciale |
last post by:
Hi
I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this
cvs version
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
with this Python
python
Python 2.5.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |