]> source.dussan.org Git - nextcloud-server.git/commitdiff
Mixed up two lines :-P
authorThomas Tanghus <thomas@tanghus.net>
Sun, 1 Jan 2012 22:34:26 +0000 (23:34 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Sun, 1 Jan 2012 22:34:26 +0000 (23:34 +0100)
lib/image.php

index b23e3507c342acff5c4dcfc4a9ca11fd2583f6bc..a8948956bf400a51b09f1f3abff340ccffeb30c5 100644 (file)
@@ -111,10 +111,10 @@ class OC_Image {
                                imagegif(self::$resource);
                                break;
                        case IMAGETYPE_JPEG:
-                               imagepng(self::$resource);
+                               imagejpeg(self::$resource);
                                break;
                        case IMAGETYPE_PNG:
-                               imagejpeg(self::$resource);
+                               imagepng(self::$resource);
                                break;
                        case IMAGETYPE_XBM:
                                imagexbm(self::$resource);