Post a message

Replying to:

Smush : optimisation des images

20 March 2014 09:52, by Alexis

Ce plugin me semble ne pas pouvoir fonctionner pour des images png sans les modifications ci-dessous: --- inc/smush_image.php (révision 81513)
+++ inc/smush_image.php (copie de travail)
@@ -82,11 +82,11 @@

else if ($format == 'PNG')
+ $source=$im;
$nq = substr($source,0,-4).'-nq8.png';
exec('pngnq -f '.$im.' && optipng -o5 '.$nq.' -out '.$dest,$out);
+ exec('pngnq -f '.$source.' && optipng -clobber -o5 '.$nq.' -out '.$dest,$out); (...)

Who are you?

To show your avatar with your message, register it first on (free et painless) and don’t forget to indicate your Email addresse here.

Enter your comment here
  • This form accepts SPIP shortcuts [->urls] {{bold}} {italics} <quotes> <code> and HTML code <q> <del> <ins>. To create paragraphs, just leave empty lines.

Add a document