Answer the question
In order to leave comments, you need to log in
Image autoresizing on the fly
The admin panel uses TinyMCE and users mostly upload large images. Whether it is possible to compress them at delivery of the text on the fly.
That is, the $text variable is given, which contains text plus pictures.
Is it possible to somehow automatically parse images and compress them before issuing them to the visitor?
Answer the question
In order to leave comments, you need to log in
Firstly, images can be limited in size when displayed using CSS (max-width), and secondly - for example, nginx has a module for transforming images on the fly (ngx_http_image_filter_module) - but the correct solution, of course, is to resize images when they are uploaded to your server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question