Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Improved image administration in TXP?
Greets,
as much as I love TXP, I think its image management capabilities could be better. I wonder if there’s a plugin or hack which allows you to add/create multiple thumbnails for an image (e.g. a small thumbnail for display in an article, and a tiny one to display on the article list). If not, it seems like here comes my next plugin project, complete with mass-import capability…
Any info on existing plugins or plugins under development in this direction would be nice. I’m also happy to contribute some code if needed.
Thanks!
Offline
#2 2006-04-30 12:41:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Improved image administration in TXP?
Hi Björn, have you been through this thread?
Offline
Re: Improved image administration in TXP?
Yep, among others, but its still in the early phase of project preparation. Yet, I was wondering if there already was a plugin which could at least do the multiple thumb thingie…
Offline
Re: Improved image administration in TXP?
upm_img has the option of sizing an img. widht and height. in affect it does the same thing.
try utterplush.com for the plugin (sorry, running out of time to go check for sure)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Improved image administration in TXP?
Thanks for your help, but I decided to go for a hack.
I have modified class.thumb.php and txp_image.php accordingly, reusing the existing functionality, which wasn’t as difficult as I expected. The image manager now offers the option to auto-create standard-sized thumbnails (which can be defined by the user), and always the smallest thumb will be displayed in the image list, thus saving space. The additional thumbs are saved with an extra extension, and the txp_image-table got an additional field added which contains information about the new thumbs available. Crude, but it works for me.
Along with a severely hacked version of wet_article_thumb (I’ll probably release that one after talking to the author), I can now display any kind of thumbnail of an article image as needed. If anyone’s interested and needs this kind of functionality, too, I can explain the hacks in more detail. Anyway, I’ll be looking forward to whatever will be the result of the txp image management rework thread.
Cheers!
Offline
#6 2006-04-30 23:16:59
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Improved image administration in TXP?
The image manager now offers the option to auto-create standard-sized thumbnails
FWIW: Textpattern 4.0.3 already auto-creates thumbnails.
Alex
Offline
Re: Improved image administration in TXP?
nighthawk,
sounds interesting, i look forward to seeing it in the open :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Improved image administration in TXP?
@zem
That’s not what I meant. ;) Here are two screenshots which illustrate what I did:
This has been added to the image edit screen. I almost always need thumbnails of all images with 200 and 100 px width (200 for use in articles, 100 on article lists as teaser images). To make it easier for the user, there is a “create all available tn” checkbox (it’s usually pre-checked, forgot that for the screenshot). The standard thumb is only created if one of the dimension fields below is filled.
That’s how it looks on the image overview screen. The new column “Additional thumbs” lists all available thumbnail types (currently I use “small” and “tiny”, but more can be added). The thumb displayed is the smallest available (in this case “tiny”).
The different additional thumbnails can be addressed through the heavily Björn-ized wet_article_thumb plugin.
As I said… crude, but it works for me. As for seeing it out in the open (@ma_smith) – it’s gonna take a little while longer until I dare to release the site to the public, but I’ll post a link as soon as it’s ready. :) Thanks for your interest!
Last edited by nighthawk (2006-05-01 22:38:45)
Offline
Re: Improved image administration in TXP?
nighthawk,
Great. If you are interested too, we are hoping for some coding help (ideas/input/development) for the (patch/proposal) for image handling changes at the thread listed above. We could use all the insight we can get as we work on the write up and the coding parts.
Thx.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Pages: 1