Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100226 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27351 invoked from network); 16 Aug 2017 12:43:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2017 12:43:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.173 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.216.173 mail-qt0-f173.google.com Received: from [209.85.216.173] ([209.85.216.173:32888] helo=mail-qt0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/70-34801-70E34995 for ; Wed, 16 Aug 2017 08:43:51 -0400 Received: by mail-qt0-f173.google.com with SMTP id a18so19959392qta.0 for ; Wed, 16 Aug 2017 05:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+C1D8BSA6R39Kxdfjm5rDQ5Xbb7B104XosWk69ZN/M0=; b=QyWEAbxZYrc/ryaDrvqUMuB/lxpW+npjHNa/kEKj2VJvFS4w5UNqZxsEqYrAT8pRMA yzZ7mNUd3QSJQe5g861SqbDrDKw6PRV1dcO8OZJ+irjFeoktYLcx07gHTK0FVMfvhuro mjb8X+cXNdfxNSz2zpjwSK8EHXP0W3uvgN3w/PZTXjM/CwMiLFG9X7VFgBxwcBLCdN+B MAsLPfgplForsY75/TO+hy2LHrPVM/KSgZBzkfiXZxI5cnOAHvz/9ZrDoQJ5n1yZdybF L+9F8wreuiwMhWNWEANeiMEMjK6TCOU23QuKrt+umJbRQNJgdCxeuBiCe4DlHSZ9ZidD WRAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+C1D8BSA6R39Kxdfjm5rDQ5Xbb7B104XosWk69ZN/M0=; b=atof/c/xQLusIjYuC4e9HuNl6gXr7gBmjbVuCM04FVxbn6bgdwlLqzwfbYJiBIqYMc ywyt+2qGolOLW0P027tzT2gvHyiyNnNkYxdqF8bYf36J48fHU76T/qen33N78woUPPLN KvMcbnPVxbVz8O8AQ4JcKg4uc2B1cfemcAuHdoWagZHajQkilqKWM6rWDSdhTSCmRg4m 2U0bs3QJ8EiBert6QgTDxtmGIsHPH9eIIm/7CnHlDI4PmO6yzIO1wR/fbLvgC2wPf8UG g5meVUaqLC9iIJlktL020d8haNJrLnn2xWwvNSNFJ70avZCXIJQlsLRqGZuqhT/Qx/G1 sUgg== X-Gm-Message-State: AHYfb5gftBBLizuqlUxI8rNNTPGZ+xBjsaDL3bs5xGmfSr3ZdJyfkpqp rD/oiLBTIfa26MwGIdzko7foRGjLfA== X-Received: by 10.200.40.23 with SMTP id 23mr2009455qtq.206.1502887428836; Wed, 16 Aug 2017 05:43:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.108.70 with HTTP; Wed, 16 Aug 2017 05:43:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 16 Aug 2017 15:43:48 +0300 Message-ID: To: Rasmus Schultz Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] GD vs Imagick From: ua.san.alex@gmail.com ("S.A.N") 2017-08-15 13:52 GMT+03:00 Rasmus Schultz : > 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? Imagick - unsafe, slow and requires many external dependencies. Now there are much better modules: Vips - safe, much faster (7x) requires little dependency. http://pecl.php.net/package/vips It's better to spend your time on Vips , instead of having an Imagick Thank.