You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-05-17 19:47:55

q53gga
Guest
Registered: 2017-05-17
Posts: 2

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

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

Offline

#2 2017-05-22 17:06:21

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 13,005

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)

Offline

#3 2017-05-22 17:33:14

q53gga
Guest
Registered: 2017-05-17
Posts: 2

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 ?

Offline

Board footer

Powered by FluxBB