在Ftp事件上调整图像大小

在Ftp事件上调整图像大小

问题描述:

Every day in my server are copied some images via ftp.I want for every image a thumbnail to be created immediately after copying.Is there a way to catch this ftp event?Or i must check periodically for changes? I'm on apache server using php. Thanks

我的服务器中的每一天都通过ftp复制一些图像。我希望每个图像都能立即创建一个缩略图 copy.Is有一种方法来捕获这个ftp事件?或者我必须定期检查更改? 我在apache服务器上使用php。 谢谢 p> div>

You can use iNotify which has an PHP API. So every new file added to an specific directory, you execute an script to handle that and create the thumbnails.

Do you need to do it on the FTP event? Perhaps you could defer it to when the image is first displayed