• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Replacing thumbnails with 'medium' images

koltira

Chevereto Member
So I'd like to use resized images rather than square thumbnails. I did that by changing 'thumb' to 'medium' in embed.php. But then the images it gives me back are one image on each line rather than side by side. Where would I make the edit to change that please?
 
Thumbs are always being generated but the medium image isn't. Having said that, you need to change display_image from class.image.php
 
Actually, these are the lines:

PHP:
        $display = $image['medium'] !== NULL ? $image['medium'] : ($image['size'] < G\get_bytes('500 KB') ? $image : $image['thumb']);
        $display_thumb = $display == $image['thumb'];

        $image['size_formatted'] = G\format_bytes($image['size']);
       
        $image['display_url'] = $display['url'];
        $image['display_width'] = $display_thumb ? getSetting('upload_thumb_width') : $image['width'];
        $image['display_height'] = $display_thumb ? getSetting('upload_thumb_height') : $image['height'];

Those control the image displayed in listings.

If you want to replace thumbs with medium, you could hack the system to you just populate thumb with the keys from medium. It will help a lot if you show me exactly what you want to achieve since the system is very big and there are like 4 instances of medium/thumb images.
 
Another way is to change the size of thumbs to medium ones.
That was how I ended up doing it, though you also have to change one of the js files because the 'medium' bbcodes are always given back to you after uploading one on each line rather than side by side, I'm not sure why they're not consistent like that.

So if you want a huge post of one image per line that works, otherwise that extra step is necessary.
 
Back
Top