Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-01-26 19:09:35

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 304
Website GitHub Twitter

Mass regeneration of thumbnails

A client asked “why are the thumbnails in Textpattern all portrait when the images are mixed proportions?”.

I explained how Textpattern remembers the last thumbnail size settings, and the issue is solved for future image uploads…

How can I rebuild/fix around 1000 old thumbnails without going through each image manually?

smd_thumbnails should do the trick, but I don’t want to use another plugin when its only task would be to replicate Textpattern functionality.

Offline

#2 2023-01-27 10:30:22

etc
Developer
Registered: 2010-11-11
Posts: 5,236
Website GitHub

Re: Mass regeneration of thumbnails

It looks like there is no core way, but that’s what plugins are made for. But we could probably add it to image multi-edit widget in 4.9.

Offline

#3 2023-01-27 16:35:35

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 304
Website GitHub Twitter

Re: Mass regeneration of thumbnails

Thanks; smd_thumbnails it is.

Offline

#4 2023-01-27 22:19:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,468
Website GitHub

Re: Mass regeneration of thumbnails

etc wrote #334588:

we could probably add it to image multi-edit widget in 4.9.

That’s a lot of processing juice, even on a page with ‘only’ 96 images selected! I had frequent script timeouts in smd_thumbnail when I implemented batch thumbnail regen. which is why I had to go the Ajax route. It’s a messy implementation though and needs tidying.


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

Board footer

Powered by FluxBB