From: Vitalie Spinu <spinuvit@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: joakim@verona.se, emacs-devel@gnu.org
Subject: Re: imagemagic in image-mode and image-dired-thumbnail-mode?
Date: Wed, 17 Jul 2013 09:29:12 +0200 [thread overview]
Message-ID: <87vc49y793.fsf@gmail.com> (raw)
In-Reply-To: <jwv8v16b3lg.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 16 Jul 2013 17:26:45 -0400")
>> Stefan Monnier <monnier@IRO.UMontreal.CA>
>> on Tue, 16 Jul 2013 17:26:45 -0400 wrote:
>> So the proposal is to rewrite all those transform functions into a
>> consistent image transform api and move them into image.el. Then add
>> interactive transformation commands to image-mode.el, iimage.el,
>> image-dired.el, gnus etc that will rely on those.
> That sounds good.
>> Of course all the above will work only with imagemagick support.
> Actually, I wonder if it can't be made to work for non-imagemagick
> images: by operating on image-specs, it should be possible to make the
> code do things like "extract the filename, pass the file to `convert'
> and create a new image-spec for that temp file", while on imagemagick
> images it would just fiddle with the paramters like :height.
Yes, this is how image-dired-thumbnail-mode works. It comes to
bookkeeping original file metadata which could be done in the image data
structure itself.
The transform api and manipulation UI is almost finished. I will post it
later today. What I am doing right now is converting the image to
imagemagick type whenever user requests a transformation of any
sort. This works very well with the drawback that the image is loaded
twice once as original type and then as imagemagick. I don't feel any
difference in speed of conversion though.
To avoid this, I have create-image-prefer-type which can take
'imagemagick or nil. In the future it can be extended to other
back-ends, if any. This variable takes effect only when create-image is
called with no explicit TYPE argument. Is this a right approach?
Vitalie
next prev parent reply other threads:[~2013-07-17 7:29 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-14 7:25 imagemagic in image-mode and image-dired-thumbnail-mode? Vitalie Spinu
2013-07-14 8:32 ` joakim
2013-07-14 11:48 ` Vitalie Spinu
2013-07-14 12:40 ` joakim
2013-07-14 13:01 ` Vitalie Spinu
2013-07-14 12:42 ` Lars Magne Ingebrigtsen
2013-07-14 18:21 ` Glenn Morris
2013-07-14 19:50 ` Lars Magne Ingebrigtsen
2013-07-14 20:06 ` Eli Zaretskii
2013-07-14 20:11 ` Lars Magne Ingebrigtsen
2013-07-14 22:00 ` Vitalie Spinu
2013-07-15 4:38 ` Eli Zaretskii
2013-07-15 4:15 ` Stephen J. Turnbull
2013-07-15 4:46 ` Eli Zaretskii
2013-07-15 5:45 ` Stephen J. Turnbull
2013-07-15 10:39 ` Óscar Fuentes
2013-08-02 15:32 ` Steinar Bang
2013-07-15 15:50 ` Eli Zaretskii
2013-07-14 18:33 ` Glenn Morris
2013-07-14 19:17 ` joakim
2013-07-15 10:51 ` Vitalie Spinu
2013-07-16 15:57 ` Glenn Morris
2013-07-16 21:26 ` Stefan Monnier
2013-07-17 7:29 ` Vitalie Spinu [this message]
2013-07-17 15:51 ` Vitalie Spinu
2013-07-18 8:47 ` Lars Magne Ingebrigtsen
2013-07-18 22:27 ` Vitalie Spinu
2013-07-19 9:22 ` Stefan Monnier
2013-07-20 7:25 ` Vitalie Spinu
2013-07-22 20:17 ` Vitalie Spinu
2013-07-22 20:31 ` Lars Magne Ingebrigtsen
2013-07-23 8:31 ` Vitalie Spinu
2013-07-18 23:22 ` image-transform.el and image-mode.el rewrite Vitalie Spinu
2013-07-19 11:52 ` Wolfgang Jenkner
2013-07-19 12:21 ` Wolfgang Jenkner
2013-07-20 7:18 ` Vitalie Spinu
2013-07-22 20:37 ` Glenn Morris
2013-07-22 21:05 ` Vitalie Spinu
2013-10-08 18:08 ` Glenn Morris
2013-10-08 23:43 ` Vitalie Spinu
2013-10-09 0:02 ` Michael Heerdegen
2014-12-15 9:33 ` Vitalie Spinu
2014-12-18 14:17 ` Michael Heerdegen
2014-12-18 21:32 ` Vitalie Spinu
2014-12-18 15:15 ` Stefan Monnier
2014-12-18 23:23 ` Vitalie Spinu
2014-12-19 4:19 ` Stefan Monnier
2014-12-19 4:46 ` Vitalie Spinu
2014-12-19 8:56 ` Eli Zaretskii
2014-12-19 17:50 ` Stefan Monnier
2014-12-19 19:37 ` Eli Zaretskii
2014-12-19 21:31 ` Stefan Monnier
2014-12-19 21:49 ` Eli Zaretskii
2014-12-19 10:24 ` Vitalie Spinu
2014-12-19 17:51 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vc49y793.fsf@gmail.com \
--to=spinuvit@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=joakim@verona.se \
--cc=monnier@IRO.UMontreal.CA \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).