Custom thumbnails (programmatically)?

zokieboyo

Joined: 2008-08-28
Posts: 9
Posted: Fri, 2008-09-12 12:09

Further to my custom thumbnails query.

I've successfully connected to the remote protocol with Userland Frontier. Woo-hoo! I can login, post pictures etc.

However, I'm still having problems with custom thumbnails—I need to replace the auto generated JPEG thumbs with my own gif and png thumbs. Sure, I have the thumbnails module installed and I can post jpegs, gifs or pngs. But I can do this only by hand, through the browser.

I need to write a 'something' to add my own custom thumbnails. In this reply I'm advised to

Quote:
2. There's a module that lets you upload custom thumbnails for items: http://codex.gallery2.org/Gallery2:Modules:thumbnail :
Quote:

Quote:
"Additionally, you can override the current thumbnail of any item (be it album items or photos, movies, ...) with a custom thumbnail that you can upload at any time."

Install that, examine the code, and use a script to batch-install your own thumbnails as custom thumbnails for each image. This thread will give you a clue how to write a script that interacts with Gallery: http://gallery.menalto.com/node/81010

But I have no clue from the above clue :-) Being totally new to php.

Is there anything in development/trial with the remote protocol that will do as I need, that is, either include my own custom thumbnail as I upload pictures (I need the original pictures as jpegs and the custom thumbnails to be either gif or pngs)? Or, to add my own custom thumbnail, after I've added the original?

Failing this, I may try impersonating a browser with Userland Frontier, and post custom thumbs, programmaticlly 'through the browser.' Initial attempts to impersonate have not allowed me to log in, but I'm sure I can ultimately get through.

Any advice apprciated,
TIA

 
zokieboyo

Joined: 2008-08-28
Posts: 9
Posted: Thu, 2008-09-18 17:32

I eventually impersonated a browser. Now, I can do anything I see in web forms, programmatically.