[SPIP] PUBLISHED : _IMAGE_TAILLE_MINI_AUTOLIEN

SPIP

Article validated

The article « _IMAGE_TAILLE_MINI_AUTOLIEN
(https://www.spip.net/en_article6758.html) » was validated by George.


_IMAGE_TAILLE_MINI_AUTOLIEN

Monday 26 September 2022 , by jack

To display images included in the text of an object, templates often
specify a maximum display size using the `

|image_reduire

(https://www.spip.net/ecrire/?exec=article&id_article=6364) filter to limit their display size. Note that the display size can also be changed by passing a

|largeur=xxx

` parameter to the insertion model.

Regardless of this size, the thumbnail of images whose original dimensions
are larger than the value of the constant _IMAGE_TAILLE_MINI_AUTOLIEN
have a link to display them in large size in the Mediabox. By default, the
value of this constant is 800 pixels wide or high. It is possible to
customise this value in your config/mes_options.php (See article
dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909)).

Example :

// allow images that are more than 200px wide or high to be enlarged


define

 (http://www.php.net/define)

(


'_IMAGE_TAILLE_MINI_AUTOLIEN'


,


200


)


;

It is possible to disable these automatic links by specifying a very high
value:

define

 (http://www.php.net/define)

(


'_IMAGE_TAILLE_MINI_AUTOLIEN'


,


20000


)


;

— Sent by SPIP (https://www.spip.net/)

rubon199-7e493.jpg