emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (org-display-inline-images)
@ 2011-02-06 11:45 Jonathan BISSON
  2011-02-07  0:30 ` (org-display-inline-images) Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan BISSON @ 2011-02-06 11:45 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 453 bytes --]

Hi,

I'm using inline images a lot in my org-files, but sometimes, the inline
image disappears and I need to do a  (org-display-inline-images) again.
I need to look in more details when does this really happen.

But what annoys me is that I added a : #+STARTUP: inlineimages, and it
doesn't seems to work…

Any ideas ?

Another nice thing would be a way to reduce the image size, just like
thumbnails. Do you think it can be done ?

J.


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: (org-display-inline-images)
  2011-02-06 11:45 (org-display-inline-images) Jonathan BISSON
@ 2011-02-07  0:30 ` Bastien
  2011-02-07  8:52   ` (org-display-inline-images) Tassilo Horn
  2011-07-18 19:49   ` (org-display-inline-images) Marcus Klemm
  0 siblings, 2 replies; 5+ messages in thread
From: Bastien @ 2011-02-07  0:30 UTC (permalink / raw)
  To: Jonathan BISSON; +Cc: emacs-orgmode

Hi Jonathan,

Jonathan BISSON <bissonjonathan@gmail.com> writes:

> I'm using inline images a lot in my org-files, but sometimes, the inline
> image disappears and I need to do a  (org-display-inline-images) again.
> I need to look in more details when does this really happen.

Ok, let us know.

> But what annoys me is that I added a : #+STARTUP: inlineimages, and it
> doesn't seems to work…
>
> Any ideas ?

I cannot reproduce it.

What version of Emacs/Org are you using?  

> Another nice thing would be a way to reduce the image size, just like
> thumbnails. Do you think it can be done ?

Not currently -- see the docstring of the create-image function in
Emacs.  I have vague memory of work beeing done in this area in Emacs,
but AFAIK this is not yet implemented.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: (org-display-inline-images)
  2011-02-07  0:30 ` (org-display-inline-images) Bastien
@ 2011-02-07  8:52   ` Tassilo Horn
  2011-02-07  9:18     ` (org-display-inline-images) Bastien
  2011-07-18 19:49   ` (org-display-inline-images) Marcus Klemm
  1 sibling, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2011-02-07  8:52 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bastien.guerry@wikimedia.fr> writes:

Hi Bastien,

>> Another nice thing would be a way to reduce the image size, just like
>> thumbnails. Do you think it can be done ?
>
> Not currently -- see the docstring of the create-image function in
> Emacs.  I have vague memory of work beeing done in this area in Emacs,
> but AFAIK this is not yet implemented.

If the imagemagick backend is used for displaying the image in question,
then resizing is possible by providing a :width or/and :height spec.

,----
|    Images loaded with ImageMagick support a few new display
| specifications:
| 
| `:width, :height'
|      The `:width' and `:height' keywords are used for scaling the
|      image.  If only one of them is specified, the other one will be
|      calculated so as to preserve the aspect ratio.  If both are
|      specified, aspect ratio may not be preserved.
`----

But that new feature is only present in the current bzr trunk.  You
might want to have a look at the included `doc-view.el', which uses that
facility to zoom images if imagemagick support is present:
`doc-view-enlarge' and `doc-view-shrink'.

The git version of Gnus (and the version included in the emacs bzr
trunk) also use that feature in `shr.el' to render inline images with an
appropriate size in HTML mails.

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: (org-display-inline-images)
  2011-02-07  8:52   ` (org-display-inline-images) Tassilo Horn
@ 2011-02-07  9:18     ` Bastien
  0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2011-02-07  9:18 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: emacs-orgmode

Hi Tassilo,

Tassilo Horn <tassilo@member.fsf.org> writes:

> If the imagemagick backend is used for displaying the image in question,
> then resizing is possible by providing a :width or/and :height spec.
>
> ,----
> |    Images loaded with ImageMagick support a few new display
> | specifications:
> | 
> | `:width, :height'
> |      The `:width' and `:height' keywords are used for scaling the
> |      image.  If only one of them is specified, the other one will be
> |      calculated so as to preserve the aspect ratio.  If both are
> |      specified, aspect ratio may not be preserved.
> `----

Thanks for the information.  In the meantime, I tested Vladimir's 
patch, which also relies on ImageMagick support.   I couldn't test
this patch very far as 

  M-: (imagemagick-register-types) RET 

crashed my emacs (24.0.50.2).  Will update my emacs and try this again.
Would be a nice thing to have rescaling/slicing of images in org.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: (org-display-inline-images)
  2011-02-07  0:30 ` (org-display-inline-images) Bastien
  2011-02-07  8:52   ` (org-display-inline-images) Tassilo Horn
@ 2011-07-18 19:49   ` Marcus Klemm
  1 sibling, 0 replies; 5+ messages in thread
From: Marcus Klemm @ 2011-07-18 19:49 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bastien.guerry <at> wikimedia.fr> writes:

> Jonathan BISSON <bissonjonathan <at> gmail.com> writes:
> 
> > I'm using inline images a lot in my org-files, but sometimes, the inline
> > image disappears and I need to do a  (org-display-inline-images) again.
> > I need to look in more details when does this really happen.
> 
> Ok, let us know.

I've got the same problem and it seems like rebuilding the agenda buffer
makes the inline images disappear.

Ciao, Marcus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-18 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 11:45 (org-display-inline-images) Jonathan BISSON
2011-02-07  0:30 ` (org-display-inline-images) Bastien
2011-02-07  8:52   ` (org-display-inline-images) Tassilo Horn
2011-02-07  9:18     ` (org-display-inline-images) Bastien
2011-07-18 19:49   ` (org-display-inline-images) Marcus Klemm

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).