Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49000 invoked from network); 15 Aug 2017 10:52:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2017 10:52:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 74.125.83.42 mail-pg0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:37228] helo=mail-pg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/E9-34801-562D2995 for ; Tue, 15 Aug 2017 06:52:21 -0400 Received: by mail-pg0-f42.google.com with SMTP id y129so3767182pgy.4 for ; Tue, 15 Aug 2017 03:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindplay-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=pr6ktEJKC3TFTj1GDieMN1DLKOD3CqAcYqLTmRvlDZ4=; b=xiKctYGlDCihvLwVrqhTLdMkoGsNb46eglvI11YLgKfJ/RVmxwlUPgQG67S1gozokf pGEER/lcFOjVqkgiUSKgn2ih+s4hV0cnMRPv2TeWr7R0sN6sSg/x760eMXRT5pqAPiqE 5hV7CTa6kSv4APbefOVDatdlyv8RX06dLKWv7BGZ7/IKvh4diIHjRsRFYE/Aehu0ykts zzwO5rsjQKl9JQvjJ0l7aPQWiUROVfLda23uXtA8O5c2nufNlNwkyjGwA6jD9tdzHftl btHTD7frW9Bgu2unp4MvzGoAXFgrsxjf41xnkiwCibPtyVduAUwinrs3R0BIqo3N5GL5 WADA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pr6ktEJKC3TFTj1GDieMN1DLKOD3CqAcYqLTmRvlDZ4=; b=Syc0n49E7z8DNJh9VHHR/EEd5DdUunfEcPDiCYPXRNOej1qaYcdfeB4k4q/Yt3nrOD F+5AykWHzSmLpXxuCHB08NhW9v0YhDkAipm+ovZXQFMwG87m5ipz4ykOYLUhS65nQL2i atBBsyLqGIm4rhEnlbhaODhbKf1tq0Jcihqjp75IkcimXKQuornZ1Y7ODduqBLps35zK EGd0DR6ZzP8IY0qx7v4IS7uU3DgH5PlrWMfiiXngBGoAew+VaB++evCZuESuAtUfWKfI qL1FM61ZHasZiw9onagkqR/ag09Ihx4Gf6B6x5vusFUxflXsyh9pv2ZrCCm9uyrdLEGD 0q0w== X-Gm-Message-State: AHYfb5iQdBfIeqYIJSfvaOFK1vfjyYwglAQDbGA5LWMdT6U4yYk0tiIv aQDrrs6d24CzRJX803TNitRIkFWLdBkG9CDyLw== X-Received: by 10.99.191.73 with SMTP id i9mr26082629pgo.83.1502794338278; Tue, 15 Aug 2017 03:52:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.148.164 with HTTP; Tue, 15 Aug 2017 03:52:17 -0700 (PDT) Date: Tue, 15 Aug 2017 12:52:17 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="089e08284670b436330556c892b4" Subject: GD vs Imagick From: rasmus@mindplay.dk (Rasmus Schultz) --089e08284670b436330556c892b4 Content-Type: text/plain; charset="UTF-8" The following GD issue is all-too common: https://stackoverflow.com/questions/5773032/how-to-stop-gd2-from-washing-away-the-colors-upon-resizing-images Basically anyone who's ever accepted uploaded images and resized or converted them, has bumped into this. Only Imagick makes it possible to work around this issue, it's not possible with GD, at all - and the internal behavior of GD is arguably "wrong", as the visible output of simply opening and saving a JPEG image with GD is mangled with washed-out colors. I am starting to wonder why GD is the default in PHP? It's a pretty outdated library with a clunky API - we have Imagick with a much more concise API and a ton more useful features. Why is the less-capable image library the default on the PHP platform? Why not Imagick? --089e08284670b436330556c892b4--