Replies: 1 comment 3 replies
-
@leoalv just use https://responsive-images.dgrammatiko.dev https://extensions.joomla.org/extension/responsive-images/ you don't have to reinvent the wheel. You will get responsive images with support to webp and avif and also proper, cache invalidation, server side caching and much more |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a script to create images of Joomla articles using GD libraries, the script generates images on the fly (that is, when the page is visited and the image derived from the main one does not exist).
I have also seen in some extensions that the creation of the image is done when saving the item in the administrator. in this case many times unnecessary images are created
So my questions are:
Is the operating logic of my script correct?
My script affects performance by querying if the image exists or creating it when it doesn't exist?
Additional question:
Is it correct to use
getimagesize()
to get the dimensions of images that are not added using the Joomlamedia
field?What concerns me is performance and security
Beta Was this translation helpful? Give feedback.
All reactions