|
Posted by Confused but working on it on 09/16/07 06:04
>>
>> Steve,
>>
>> Wow, way too much time on your hands. :)
>
> i think when i originally wrote that, it took all of about 5 minutues. ;^)
>
>> My first goal was to get my pics to display, then get rid of the . and
>> .., now I will fix the code to the example you gave before if you say
>> it's faster. Then,(light drumroll...), I want to read everything in
>> thumbs and create my output so I get the thumbto link to a larger pic
>> in images. Some sort of anchor tag thing. THAT would be cool to me.
>> Then I can rewrite about 20 pages, export 20 albums as thumbs and 20
>> albums as images... :)
>
> you realize you don't have to have a thumb of each pic in order to
> generate a thumb, right?
>
> if you'd like, i can post a class that does this based on the actual
> image, and then show how to use it in your main script.
Well hell yeah, post away!
I was trying to do it myself as I see a lot of posts asking for free work. :)
At this point storage isn't an issue and it takes 20 seconds to
generate the thumbs and the resized images from iPhoto. As opposed to
if I had a 1600x1200 pic and uploaded I think that takes more storage
than a 800px pic and a 100px thumb. Let me see if I can write a script
to calculate the storage difference... :)
So when I take pics I make a dir and make images and thumbs dir inside
of that. The I have a very simple php page with includes for header and
footer. Change the title, add my paragraph or two and then my thumbs
output. I tried to use iWeb for plain export of html pages but ends up
being more work because every file extension needs to be changed to
php, footer and header added, css line to be added. UGH.
So in 67 lines of code or less, read my images, display as thumbs
linking back to the originals, sorted by filename...
:)
Thanks,
Ron
Navigation:
[Reply to this message]
|