S
S
scvorec2012-04-08 23:52:37
PHP
scvorec, 2012-04-08 23:52:37

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

1 answer(s)
V
Vitaly Peretyatko, 2012-04-09
@viperet

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 question

Ask a Question

731 491 924 answers to any question