• Welcome to Simple Machines Community Forum. Please login or sign up.
December 09, 2021, 02:48:58 AM

News:

Wondering if this will always be free?  See why free is better.


Fix attachment dimensions and thumbnails.

Started by JayBachatero, August 08, 2007, 01:25:12 AM

Previous topic - Next topic

Norv

Please find it attached in the first post. You need to be logged in to see attachments. :)
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Gerkin

Is there any extra undocumented trick for getting this to work?  I've just finished a conversion from IPB 2.3.x and all the posted image thumbnails are missing.  I've run this a couple of times but no luck so far ... has something changed since this was made?  I'm very comfortable with PHP and MySQL if there's something I can try manually ...

Gerkin

Quote from: Gerkin on August 10, 2010, 08:31:41 PM
Is there any extra undocumented trick for getting this to work?  I've just finished a conversion from IPB 2.3.x and all the posted image thumbnails are missing.  I've run this a couple of times but no luck so far ... has something changed since this was made?  I'm very comfortable with PHP and MySQL if there's something I can try manually ...

I think I found the issue and sorted it (it's still fixing things but it looks like it will be fine now).  For some reason on my conversion it brought across image width's for everything, but not height.  This script looks for everything with both height and width set to 0.  A small edit (removed the AND width = 0 link from the query) and things seem to be working.

Hope this helps if anyone else runs into this.

Norv

Thank you for sharing the issue and your solution, I will look into it. I thought the conversion was supposed to set both the width and height of the image, tbh, but not the thumbnails. Normally thumbnails should be able to be regenerated from ACP, attachments maintenance.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: