Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17338: LJSUP-6625 (The system doesn't crop the ...

Committer: ailyin
LJSUP-6625 (The system doesn't crop the image if the one of the side less than 100 pxls): force output to be PNG to work around an imagemagick bug
U   trunk/cgi-bin/ljuserpics.pl
Modified: trunk/cgi-bin/ljuserpics.pl
===================================================================
--- trunk/cgi-bin/ljuserpics.pl	2010-09-10 07:10:14 UTC (rev 17337)
+++ trunk/cgi-bin/ljuserpics.pl	2010-09-10 07:27:59 UTC (rev 17338)
@@ -734,6 +734,7 @@
     return undef unless $timage;
 
     $timage->BlobToImage($$dataref);
+    $timage->Set(magick => 'PNG');
 
     if ($auto_crop) {
         my ($crop_w, $crop_h) = ();

Tags: andy, livejournal, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments