hofff / contao-social-tags

GNU Lesser General Public License v3.0
2 stars 5 forks source link

Image size #26

Open AlexanderDort opened 2 years ago

AlexanderDort commented 2 years ago

Is there a chance to have the website's global settings for lightbox images (or maybe an individual setting) used for the image size and url instead of the link to the original image? The problem here is that large images exceed the max. upload size for all platforms and so no image gets delivered via og:.

frontendschlampe commented 2 years ago

Hmmm ... we talked some time ago with various users about the idea using image size of responsive images, but the problem is, that the path would change after changing the image. So we decided using the absolute path of image.

But you can increase the max. upload size in Contao settings (by default 2MB)? But what images do you use? A "normal" preview image for various Social Media platforms should not be bigger than 500kB, isn't it?

AlexanderDort commented 2 years ago

Hi Nicky,

First of all thanks to your reply.

As you know, Contao uses a great and valuable image processor in the backend. So most users, like us, use these capabilities to optimize images for all devices in their responsive design. This means that we upload the images in higher resolution and tune the image processor to render and deliver small versions to the front end based on the viewers device.

Also for lightbox view there’s an option to reduce delivered images to let’s say 2000 px and using this option Contao doesn’t deliver the high res images at all.

Here exactly comes now the problem with your great social-tags plugin as this plugin doesn’t recognize any image size from the backend (nor the Lightbox resolution) but always delivers the uploaded image size (which is in most cases bigger than 2000 px). The problem here is, that most social platforms limit the maximum upload size for images and if the image is too big they ignore it. Means the og:image tag for such posts is getting ignored and you end up with a text only post based on the delivered data of your plugin.

Therefore it would be fantastic to have an option in your plugin's backend form fields to check „use lightbox image size“ or probably make this mandatory for all og: image links generated by your plugin.

I hope I was able to express myself clearly.

Best regards, Alex


Alexander Dort https://www.alexanderdort.com https://alexander-dort.myportfolio.com

Am Altzberg 28 66540 Neunkirchen-Hangard Germany

Tel./Phone:
+49 (0) 68 97 - 91 85 21

Mobil/Mobile:
+49 (0) 1 79 - 4 86 19 25

e-Mail:
@.***

PrintersLounge http://www.printerslounge.com

My recommendations:

Best lacquers, coatings, varnishes, adhesives, flexo inks http://www.weilburger.com

Best lamination films http://www.trofilms.de

Best packaging competences http://www.printcity.de

Am 20.04.2022 um 14:16 schrieb Nicky Hoff @.***>:

Hmmm ... we talked some time ago with various users about the idea using image size of responsive images, but the problem is, that the path would change after changing the image. So we decided using the absolute path of image.

But you can increase the max. upload size in Contao settings (by default 2MB)? But what images do you use? A "normal" preview image for various Social Media platforms should not be bigger than 500kB, isn't it?

— Reply to this email directly, view it on GitHub https://github.com/hofff/contao-social-tags/issues/26#issuecomment-1103864069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5C2QLTCS6VX25AORC2FQ3VF7YTBANCNFSM5TDZINTQ. You are receiving this because you authored the thread.

frontendschlampe commented 2 years ago

Hey @AlexanderDort yes ... I understand what you mean … but the problem still remains: all images processed through Contao image processor will be placed in global asset folder of Contao. If the image will be changed, the URL to image changes, too. I will talk to @dmolineus if we can add the option nevertheless.