PUBLISHED : _LOGO_MAX_HEIGHT

**SPIP**

# Article validated

The article "**\_LOGO\_MAX_HEIGHT**
(_LOGO_MAX_HEIGHT - SPIP)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.

* * *

## \_LOGO\_MAX_HEIGHT

Friday 15 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)

This constant defines the maximum height in pixels below which SPIP will
accept to store a logo [1] .

It is possible to define this constant in your file
`config/mes_options.php` (see the article dedicated to it
(SPIP))

**Important**
**For this height limitation to be taken into account, you must also give

a value to the constant \_LOGO\_MAX_WIDTH
(SPIP).**

- Default value: ``

example :

    // logos larger than 500 pixels in height will not be registered.

    define
    
     (PHP: define - Manual)
    
    &#40;

    '_LOGO_MAX_HEIGHT'

    ,

    500

    &#41;

    ;

When this constant is set to `` (zero), SPIP does not carry out a check
when the image is uploaded.

See also: \_LOGO\_MAX\_SIZE
(SPIP) et
\_LOGO\_MAX\_WIDTH
(SPIP).

[1] due to the way the upload forms work, the logo file will still be sent
to the server. It is only once "*uploaded*" that SPIP will check the
conformity of this file with the constant

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

rubon199.jpg

puce.gif