![]() |
pictures and HTML and UN*X and Questions.
So , i am a snappy kind of guy who likes to snap some pictures once in a while...
anyone have an app or script to take the contents of a directory (pictures in JPG format) and churn out a simple HTML file? |
Yeah, I have one that uses ImageMagick to create the thumbnails.
|
Code:
#!/bin/bashCode:
#!/bin/bash |
(pasting isn't working because of the BB HTML translations.)
Basically loop thru the *.jpg files, and just use echo/print to create a hyperlink. For a nice touch, you can add header info, meta tags, etc. |
Let the shell glob it for you:
Code:
for i in *.jpg |
widebody911 - put your code between brackets with "code" and "/code" as the contents like HTML tags, but with [ and ] instead of < and >
|
I lost some of the formatting, but this shoudl work
I denote thumbnails with an '_' as the leading character of the file name, which is why I glob the list of file names as I do; I could have made cleaner with sed, but oh well... Code:
#!/bin/sh |
Ah HA...Caught ya....THE GEEKS...THEY ARE HERE!!!!!..
seriously...thanks guys....this is exactly what i need. |
Too much time washing ans waxing this thing...
http://forums.pelicanparts.com/uploa...1148340943.jpg |
There's a few freeware scripts out there that not only do this, they thumbnail and nicely format the HTML, with css support etc. Hit google and you'll see em. In the end, it's not hard, its about who spent the longest time and started from the nicest HTML template.
|
| All times are GMT -8. The time now is 04:53 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website