From: joakim@verona.se
To: emacs-devel@gnu.org, larsi@gnus.org
Subject: Re: Resizing images
Date: Wed, 01 Sep 2010 10:40:01 +0200 [thread overview]
Message-ID: <m3lj7luaam.fsf@verona.se> (raw)
In-Reply-To: <m3zkw26dce.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 31 Aug 2010 16:55:45 +0200")
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> joakim@verona.se writes:
>
>> In order to get the desired loader, change image-type-file-name-regexps,
>> or explicitly provide the loader when making the display spec:
>>
>> (put-text-property 10 11 'display (list 'image :type 'imagemagick :file "/home/joakim/my_scans/doc.djvu[1]"))
>>
>> Clearly a better api will be beneficial. When I merged the patch I
>> focused on minimizing the breakage of other packages. Even so, Cygwin
>> and DOS builds broke. Now that most issues seem resolved, we can maybe
>> continue with improving the api.
>
> Yes, please do.
>
> (create-image file nil nil
> :type 'imagemagick
> :width 100
> :height 100)
>
> didn't work, and
>
> (let ((image-type-file-name-regexps '(("." imagemagick))))
> (create-image file nil nil
> :width 100
> :height 100))
>
> didn't work...
This works perfectly for me:
(put-image (create-image "/home/joakim/sicklaplanritning.jpg" 'imagemagick nil
:width 100
:height 100) 0)
--
Joakim Verona
next prev parent reply other threads:[~2010-09-01 8:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 16:34 Resizing images Lars Magne Ingebrigtsen
2010-08-30 19:23 ` Tassilo Horn
2010-08-30 19:38 ` Lars Magne Ingebrigtsen
2010-08-30 20:04 ` Julien Danjou
2010-08-30 20:04 ` Julien Danjou
2010-08-30 20:14 ` Lennart Borgman
2010-08-30 20:17 ` Lars Magne Ingebrigtsen
2010-08-30 23:26 ` Lars Magne Ingebrigtsen
2010-08-31 6:05 ` joakim
2010-08-31 8:02 ` Julien Danjou
2010-08-31 8:32 ` joakim
2010-08-31 14:55 ` Lars Magne Ingebrigtsen
2010-09-01 8:40 ` joakim [this message]
2010-09-01 15:07 ` Lars Magne Ingebrigtsen
2010-08-31 14:52 ` Lars Magne Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3lj7luaam.fsf@verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.