• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

BBcode medium link = broken

Status
Not open for further replies.

BMWracing

Chevereto Member
I updated to 3.4.6 today and noticed that the medium bb code link after uploading images is broken.

It's giving me thumbnails and medium sized images in one post.. So in other words it's not constant.

vGmsYZN.png
 
Last edited:
Medium is not always generated, is only generated when is needed.
 
Is it not being generated because the medium dimensions are larger than the image?

I understand this behaviour, but I would like to suggest that when copying all the bb codes after uploading (batch copy) that it then uses the original image size and not the thumbnail versions when selecting to copy all medium bb codes.

So instead of my example above it would be medium + originals.
 
Thanks Rodolfo. Any chance you could provide me with a quick fix until 3.47 is released with the changed code?
 
app/lib/chevereto.js change this:
Code:
        if(!image.medium) {
            image.medium = image.thumb;
        }

To this:
Code:
        // Medium doesn't exists
        if(!image.medium) {
            var imageProp = ["filename", "name", "width", "height", "ratio", "bits", "channels", "extension", "filename", "height", "mime", "name", "ratio", "size", "size_formatted", "url", "width"];
            image.medium = {};
            for(var i=0; i<imageProp.length; i++) {
                image.medium[imageProp[i]] = image[imageProp[i]];
            }
        }
 
Status
Not open for further replies.
Back
Top