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
Member
Registered: 2017-05-17
Posts: 3

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: 15,278

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 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

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

q53gga
Member
Registered: 2017-05-17
Posts: 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 ?

Offline

Board footer

Powered by FluxBB