emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing images


From: joakim
Subject: Re: Resizing images
Date: Wed, 01 Sep 2010 10:40:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]