Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2011-01-21 15:01:11

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Thanks, e-mail sent !

Offline

#98 2011-02-08 11:06:15

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Hey Stef – this is a great plugin, I’m loving it :)

I have a few questions though (as always) :)

1 – Is is possible to combine smd_thumbnail with Multiple Image Upload so all the thumbs are created on upload? :)

2 – If that is not possible, my client is uploading up to 50 images per article, the total images on the site could well exceed 5000!!

a) Would using “Create All” cause a monumental break down of my server?
b) How about a “Create Missing Thumbnails”?
c) Help – any other image ideas on this?

On a plus note, after a quick read of your docs, my limited use of the new images tags and some custom field love – I managed to make a new colorbox gallery in around 5mins – perfect :)

Offline

#99 2011-02-08 11:15:51

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,285
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

tye wrote:

Hey Stef – this is a great plugin, I’m loving it :)

Thanks. ‘tis useful.

Is is possible to combine smd_thumbnail with Multiple Image Upload so all the thumbs are created on upload?

Sadly not yet. I’d need to talk with the authors of those plugins (or just spend some time understanding the code) so we could come to some agreement. Perhaps I could put a callback in my plugin so authors of multi-image uploaders can call the thumbnail creation process (somehow, not sure how yet). Alternatively the authors of those plugins could maybe add a callback so smd_thumbnail could hook into the upload process such that each time an ‘insert’ is done, it calls smd_thumbnail to create the thumbs for the active profiles.

Not sure which is best. At the moment the plugin is only triggered on the Images tab and on the Image Edit tab when you interact with the controls.

the total images on the site could well exceed 5000!! Would using “Create All” cause a monumental break down of my server?

Not at all. It does it by AJAX so it only processes one request at time, in real-time as you watch the counter go up. If you’re in any way concerned though, you can always do it by category or a page at a time using TXP’s ‘Select All’ and then Create by selection. Or you could disable some profiles so you’re only creating maybe one thumb profile at a time.

How about a “Create Missing Thumbnails”?

Maybe an option in future. At the moment it does recreate them if they already exist so I suppose I could add an option to silently skip images that are already there. Leave it with me.

On a plus note, after a quick read of your docs, my limited use of the new images tags and some custom field love – I managed to make a new colorbox gallery in around 5mins – perfect :)

That’s the spirit! Glad it worked out for you.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#100 2011-02-08 11:31:08

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Thanks Stef – I knew the Multiple image upload was a stab in the dark – but you gotta ask :)

“Create by selection” – I don’t see that using v0.14 – where is it?

That would negate the need for “Create Missing Thumbnails” I think

Offline

#101 2011-02-08 11:35:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,285
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

tye wrote:

“Create by selection” – I don’t see that using v0.14 – where is it?

D’oh! It’s in v0.20 which I thought I’d released but haven’t. Give me a few minutes…


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#102 2011-02-08 11:45:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,285
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

Belatedly released v0.20. Features:

  • Tools / prefs separated from profile list
  • Permitted batch creation via 1) selected images 2) category 3) author (thanks jpdupont)
  • Added smd_thumb_auto_replace option and altered default behaviour (thanks maniqui)
  • Fixed TXP thumbnail creation on thumbnail replace and made prefs global — and only available to site admins (all thanks jstubbs). NOTE: your existing prefs will be lost on upgrade so please visit the tools/prefs to reset them. Sorry, but there’s no other way to be sure the settings are set to their true ‘global’ nature
  • Fixed New Profile button wrapping (thanks jpdupont)

Hope this version helps more people out. Let me know how you get on. jpdupont and others who have betas, please upgrade to this version as I may have fixed a few other niggly little things since you had your copies.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#103 2011-02-08 11:58:13

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Stef – have you got 4 pairs of hands?

Thanks mate – that totally solves my problem :)

This plugin just got even better :)

Offline

#104 2011-03-01 01:29:03

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Is there a way to output just the thumbnail url? For now I’m doing

<txp:site_url/>images/slide-show/<txp:image_info type="id"/><txp:image_info type="ext"/>

Where slide-show is the thumbnail profile.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#105 2011-03-02 11:41:43

andrea
Member
From: la la land
Registered: 2004-02-24
Posts: 62
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

thanks so much for this plugin! it’s excellent, excellent.

Offline

#106 2011-03-28 22:00:34

Pablo Apiolazza
Member
From: Trieste, Italy
Registered: 2011-03-03
Posts: 19
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Hi, I wanted to use this plugin to comply with the (untold) requirements of facebook metadata, but I don’t really know how can i get the full URL of the thumbnail created by the plugin. Can someone help me? I was using this markup so far:

@<txp:upm_article_image><txp:upm_img_full_url /></txp:upm_article_image>

How should it be with the new plugin?

Thanks in advance.

Offline

#107 2011-03-29 01:04:25

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Pablo, you need to use the new image tags recently added to TXP. If you look at this TXP Tip – specifically the _ portfolio_gallery_ code block you will see how to replace upm_image with native TXP tags.

Offline

#108 2011-04-01 21:51:30

kevinpotts
Member
From: Kansas City
Registered: 2004-12-07
Posts: 366
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

I am not sure I understand how to integrate this with smd_gallery. For instance, this:

<txp:smd_gallery category="test"><txp:smd_thumbnail type="gallery" /></txp:smd_gallery>

Only produces these errors:

Tag error: <txp:smd_thumbnail type="gallery" /> ->  Textpattern Notice: Unknown image.  on line 1194

But if I do this, it works:

<txp:smd_gallery category="test"><li><img src="/images/gallery/{id}{ext}" alt="{alt}"></li></txp:smd_gallery>

Is this the most efficient way of getting these images? I am basically using the images created from the plugin, but not actually calling the plugin.

Offline

Board footer

Powered by FluxBB