Changeset 79196 in spip-zone


Ignore:
Timestamp:
Dec 6, 2013, 12:00:02 PM (6 years ago)
Author:
arno@…
Message:

Ne pas planter image_net si image trop grande: retourner l'image source.

Location:
_plugins_/image_responsive
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/image_responsive/action/image_responsive.php

    r78517 r79196  
    8181                        if (_IMG_GD_MAX_PIXELS && $srcWidth*$srcHeight>_IMG_GD_MAX_PIXELS){
    8282                                spip_log("vignette gd1/gd2 impossible : ".$srcWidth*$srcHeight."pixels");
    83                                 return $image;
     83                                return("<img src='$image'>");                           
    8484                        }
    8585                        $destFormat = $format_sortie;
  • _plugins_/image_responsive/paquet.xml

    r78833 r79196  
    22        prefix="image_responsive"
    33        categorie="outil"
    4         version="1.2.1"
     4        version="1.2.2"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.