M
M
mt. NATS2019-11-24 08:38:39
htaccess
mt. NATS, 2019-11-24 08:38:39

Is it possible to make a rule for auto-processing of images?

Hello!
There is a folder in which photos are uploaded through different sources ...
I would like something like a rule so that all new images are processed immediately!?
For example, "run" through a php script... Maybe .htaccess ?
I want to watermark and resize but I know how to solve it...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mt. NATS, 2019-11-24
@Dimastik86

the question is removed, who needs:

<FilesMatch "\.(jpeg|JPEG|jpg|JPG|png|PNG)$"> 
   RewriteEngine On 
   RewriteCond %{REQUEST_FILENAME} -f 
   RewriteRule ^(.*)$ /path/watermark.php [T=application/x-httpd-php,L,QSA] 
</FilesMatch>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question