1 (edited by q53gga 2017-05-17 19:48:12)

Topic: Remove attachments smaller than XX Kb

Hello,

I am looking for a way to skip attachments that are smaller than a specific size. I couldn't find any references in the php files. The reason is that I would like to remove signature logos (SHA1/MD5 or hashes in general are not possible as the hashes permanently changes due to image compression).

Anyone an idea ?

Thanks

2

Re: Remove attachments smaller than XX Kb

If logo is always the same, you can import one time and then, in Document, you select Refuse to import

CentOS 6.5 - PHP 5.6 - PHP 7 - MySQL 5.6  + APC + memcached
GLPI 0.90.5 SVN - GLPI 9.1.3 SVN
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

3

Re: Remove attachments smaller than XX Kb

Thanks for the reply. I thought that is uses the checksum (which is changing). So it has some sort of image recognition ?