I’m using Cloudinary with my Strapi instance, the option to generate the responsive friendly versions of images is really handy but I’m only using 3 of the 5 images that get generated, which is quite a lot of wasted database rows and image hosting on Cloudinary.
Is there a way to select only certain options? If not, that would be a handy feature.
Hey @josh, no it is currently not possible the formats are hardcoded configured in.
But I spoke to someone, that was looking into a PR to add some config for the format sizes and disabling them. Will come back to you if it is merged.
Hey @mingxi, no I spoke with the guy but he didn’t have any time to implement something by default. I gave it a try, but now I have no time to finish it. But with extensions as @sunnyson replied will work for now.
@MattieBelt Thanks for the reply! This wish is not so important, but it would be a “Nice to Have” function or option. At the moment my program is running on “Extensions” already. I’m in no hurry and I am quite sure that there will be a good solution soon.
I was wondering where do I see these multiple file sizes? I only have access to a single url from media library. Where are the others? Do they just have small_ medium_ and large_ prepended in front of the original filename? Also, why is Strapi generating random characters after the filenames even if I don’t already have a file with the same filename? As an example, when I upload strapitest.jpg I get /uploads/strapitest_52de418f82.jpg. Thank you for your help.
Duplication protection, for example say you had some mobile app uploading pictures. iPhones or most Android phones for example save it like img_1234.png. If you had 10 users all happen to upload a file with that same name, one could replace the other. So we add a random string to prevent that from happening.