From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Displaying images with recent trunk
Date: Tue, 12 Aug 2014 16:02:53 +0200 [thread overview]
Message-ID: <m3sil1956a.fsf@stories.gnus.org> (raw)
In-Reply-To: <53EA189E.5010408@alice.it> (Angelo Graziosi's message of "Tue, 12 Aug 2014 15:37:34 +0200")
Angelo Graziosi <angelo.graziosi@alice.it> writes:
> I wonder if someone has tried to display imaged with trunk, say, after
> Aug 05, 2014.
Hey, that's when I tinkered with image-mode...
> For example try this:
>
> 1. emacs -Q
>
> 2. C-x C-f
> /usr/local/Emacs.app/share/icons/hicolor/128x128/apps/emacs.png. It
> looks OK.
>
> 3. Now on menu bar click 'Image' and then 'Fit Frame to
> image'. Question: How to revert (undo) this?
>
> 4. Click on menu bar 'Image' and then 'Fit to Window Height'
>
> 5. Click on menu bar 'Image' and then 'Fit to Window width'
>
> Repeat 3., 4., 5. in different order... and with various files...
>
> Sometimes (I have tried with several PNG and JPG files), 4. and
> 5. gives the same result, i.e. a deformed image (which does not
> maintain the aspect ratio). Is this by design?
I'm unable to reproduce this bug. Do you have a reproducible recipe?
The change I introduced was 1) to use imagemagick instead of the other
drivers, and 2) set max-width/max-height to the window. I wanted to
introduce reasonable defaults when viewing images, but the logic in how
image-mode.el displays images is kinda hard to follow, so I may have
done this in a sub-optimal manner.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2014-08-12 14:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 13:37 Displaying images with recent trunk Angelo Graziosi
2014-08-12 14:02 ` Lars Magne Ingebrigtsen [this message]
2014-08-12 14:08 ` Lars Magne Ingebrigtsen
2014-08-12 21:22 ` Angelo Graziosi
2014-09-18 18:35 ` Lars Magne Ingebrigtsen
2014-09-18 23:10 ` Angelo Graziosi
2014-09-21 12:28 ` 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
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=m3sil1956a.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=angelo.graziosi@alice.it \
--cc=emacs-devel@gnu.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 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).