From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.devel Subject: Re: Image resizing and rotation on NS port without imagemagick Date: Wed, 11 Oct 2017 20:27:58 +0200 Message-ID: References: <20171008203822.GA22846@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507746506 27087 195.159.176.226 (11 Oct 2017 18:28:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Oct 2017 18:28:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 11 20:28:19 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Ljo-0005NB-2Z for ged-emacs-devel@m.gmane.org; Wed, 11 Oct 2017 20:28:12 +0200 Original-Received: from localhost ([::1]:42166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Ljv-0002V0-9B for ged-emacs-devel@m.gmane.org; Wed, 11 Oct 2017 14:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Ljo-0002Ua-EG for emacs-devel@gnu.org; Wed, 11 Oct 2017 14:28:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Ljl-0006Q6-PS for emacs-devel@gnu.org; Wed, 11 Oct 2017 14:28:12 -0400 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:57454) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2Ljl-0006MH-IJ for emacs-devel@gnu.org; Wed, 11 Oct 2017 14:28:09 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 8DF0222578 for ; Wed, 11 Oct 2017 18:21:23 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1507746082; x=1508610083; bh=vc4q3Dhz+DxkE wi1m1WqdgNo9VaZ1zWgl6CdK4HvEzE=; b=JoOi0wI78KUkXXxMC6uNBgtKCniA6 GhYjBdGXdFHs07CuuBGNkXHX7Tq4Xnh/OK8J5k3rU4DIYKehmkJDvBkaB6R6bYkA sPyUGlDAWSoSz9LiDcbocNVyqE0RqWBAEigOY+U2dpTGkSd7sqlpufX5VyvyHsI1 XGcsKADlGWK46s= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DYxf116Dz23B for ; Wed, 11 Oct 2017 18:21:22 +0000 (UTC) Original-Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 009C922558; Wed, 11 Oct 2017 18:21:21 +0000 (UTC) In-reply-to: <20171008203822.GA22846@breton.holly.idiocy.org> (message from Alan Third on Sun, 8 Oct 2017 21:38:22 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.35.109.145 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219383 Archived-At: > Date: Sun, 8 Oct 2017 21:38:22 +0100 > From: Alan Third >=20 > It=E2=80=99s always kind of bugged me that I need imagemagick to do ima= ge > resizing when Cocoa and GNUstep support it natively, so I=E2=80=99ve fi= nally > got round to implementing it. >=20 > It seems to work fine. Any comments are welcome. >=20 > NOTE: if you have libjpg, libpng, or whatever installed, configure > includes them and emacs will use them preferentially over the built=E2=80= =90in > EmacsImage stuff, so you may need to use >=20 > --without-png --without-gif --without-jpeg >=20 > I imagine there=E2=80=99s a way to switch the default to not use them w= hen > compiling --with-ns? > --=20 > Alan Third>=20 Neat. Thanks for working on this; it works well on macOS 10.6 too. Do you know if we could get it to work with librsvg, so that zooming/rotation could be done on SVGs as well?