iGalerie

Vous n'êtes pas identifié(e).

Annonce

Un message d'erreur qui s'affiche ? Un mot de passe oublié ? L'ajout de fichier qui ne marche pas ?
Pensez d'abord à lire la FAQ, vous y trouverez probablement une solution à votre problème.

#1 24-11-2023 17:40:42

Knut
Membre
Lieu : Norway
Inscription : 27-12-2013
Messages : 74
Site Web

JPEG File Interchange Format jfif

Are there any plans to make the iGalerie able to upload .jfif files in the future?
I get more of these type of files now.
Knut

Hors ligne

#2 25-11-2023 13:20:32

David
Développeur d'iGalerie
Inscription : 12-05-2006
Messages : 4 337
Site Web

Re : JPEG File Interchange Format jfif

Hi,

Replace line 17 in includes/core/Image.class.php:

const EXT_ARRAY = ['avif', 'jpeg', 'jpg', 'gif', 'png', 'webp'];

with the following line:

const EXT_ARRAY = ['avif', 'jfif', 'jpeg', 'jpg', 'gif', 'png', 'webp'];

and lines 900-902 in includes/core/Item.class.php:

case 'jpg' :
case 'jpeg' :
	return self::TYPE_JPEG;

with this lines:

case 'jfif' :
case 'jpg' :
case 'jpeg' :
	return self::TYPE_JPEG;

Hors ligne

#3 21-12-2023 16:50:38

Knut
Membre
Lieu : Norway
Inscription : 27-12-2013
Messages : 74
Site Web

Re : JPEG File Interchange Format jfif

wow, thanks David.
By the way, I very much liked the 3.0.22 version with slideshow new options.

Dernière modification par Knut (21-12-2023 16:54:40)

Hors ligne

Pied de page des forums