GNU bug report logs -
#73501
30.0.91; zoom smaller/larger svg image file unresponsive
Previous Next
Reported by: Van Ly <van.ly <at> sdf.org>
Date: Thu, 26 Sep 2024 15:51:02 UTC
Severity: normal
Found in version 30.0.91
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73501 in the body.
You can then email your comments to 73501 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Thu, 26 Sep 2024 15:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Van Ly <van.ly <at> sdf.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 26 Sep 2024 15:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
Using the following svg image file
-> https://commons.wikimedia.org/wiki/File:CaldwellStarChart.svg
when "emacs -Q" is toggled fullscreen on 1080p display and the above
file is opened, "C-x C-+" and "C-x C--" text-scale-adjust command won't
zoom to enlarge or shrink the rendered image.
The svg image is displayed at 50-percent the width of fullscreen.
If "emacs -Q" is opened and left at the default frame size and the svg
file is opened, the smaller displayed svg image (See A) will zoom to
enlarge once at 50-percent the width of screen after the frame is
toggled fullscreen (See B).
Expected behavior is zoom to enlarge/shrink happens in response to "C-x C-+" and "C-x C--".
-> http://sdf.org/~van.ly/img/emacs-30-0-91-pretest-svg-default-frame.jpeg A
-> http://sdf.org/~van.ly/img/emacs-30-0-91-pretest-svg-fullscreen.jpeg B
[bug-gnu-emacs-report.text (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
--
vl
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Thu, 26 Sep 2024 16:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 73501 <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 26 Sep 2024 15:49:48 +0000
> From: Van Ly via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Using the following svg image file
>
> -> https://commons.wikimedia.org/wiki/File:CaldwellStarChart.svg
>
> when "emacs -Q" is toggled fullscreen on 1080p display and the above
> file is opened, "C-x C-+" and "C-x C--" text-scale-adjust command won't
> zoom to enlarge or shrink the rendered image.
I cannot reproduce this: I can zoom in or out this file in full-screen
Emacs frame.
> Expected behavior is zoom to enlarge/shrink happens in response to "C-x C-+" and "C-x C--".
I get the expected behavior.
Do you see something interesting in *Messages*?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 09:41:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 73501 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Thu, 26 Sep 2024 15:49:48 +0000
>> From: Van Ly via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> Using the following svg image file
>>
>> -> https://commons.wikimedia.org/wiki/File:CaldwellStarChart.svg
>>
>> when "emacs -Q" is toggled fullscreen on 1080p display and the above
>> file is opened, "C-x C-+" and "C-x C--" text-scale-adjust command won't
>> zoom to enlarge or shrink the rendered image.
>
> I cannot reproduce this: I can zoom in or out this file in full-screen
> Emacs frame.
>
>> Expected behavior is zoom to enlarge/shrink happens in response to "C-x C-+" and "C-x C--".
>
> I get the expected behavior.
>
> Do you see something interesting in *Messages*?
>
# Contents of *Messages*
1 For information about GNU Emacs and the GNU system, type C-h C-a.
2 Type C-c C-c to view the image as text
3 Use +, =, -, 0, C-+, C-=, C--, C-0 for further adjustment [5 times]
The above 5 attempts to enlarge at fullscreen does nothing.
I see the svg image resize automatically at fullwidth from default frame
size to 50-percent of fullscreen, toggling back to default frame size
will automatically shrink the svg image file.
As attached below, I see two SVG libraries for GNOME installed but my
emacs is linked to LUCID X toolkit.
[x (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
--
vl
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 10:42:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 73501 <at> debbugs.gnu.org (full text, mbox):
> From: Van Ly <van.ly <at> sdf.org>
> Cc: 73501 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 09:36:11 +0000
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > I cannot reproduce this: I can zoom in or out this file in full-screen
> > Emacs frame.
> >
> >> Expected behavior is zoom to enlarge/shrink happens in response to "C-x C-+" and "C-x C--".
> >
> > I get the expected behavior.
> >
> > Do you see something interesting in *Messages*?
> >
>
> # Contents of *Messages*
>
> 1 For information about GNU Emacs and the GNU system, type C-h C-a.
> 2 Type C-c C-c to view the image as text
> 3 Use +, =, -, 0, C-+, C-=, C--, C-0 for further adjustment [5 times]
>
> The above 5 attempts to enlarge at fullscreen does nothing.
Then I have no idea what happens in your case. Maybe it's your
version of librsvg, or maybe it's something else.
Can anyone reproduce this issue and debug it?
> I see the svg image resize automatically at fullwidth from default frame
> size to 50-percent of fullscreen, toggling back to default frame size
> will automatically shrink the svg image file.
That's expected, and AFAIU is unrelated to the issue at hand. See
image-auto-resize.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 12:15:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 73501 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Van Ly <van.ly <at> sdf.org>
>> Cc: 73501 <at> debbugs.gnu.org
>> Date: Fri, 27 Sep 2024 09:36:11 +0000
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> > I cannot reproduce this: I can zoom in or out this file in full-screen
>> > Emacs frame.
>> >
>> >> Expected behavior is zoom to enlarge/shrink happens in response to "C-x C-+" and "C-x C--".
>> >
>> > I get the expected behavior.
>> >
>> > Do you see something interesting in *Messages*?
>> >
>>
>> # Contents of *Messages*
>>
>> 1 For information about GNU Emacs and the GNU system, type C-h C-a.
>> 2 Type C-c C-c to view the image as text
>> 3 Use +, =, -, 0, C-+, C-=, C--, C-0 for further adjustment [5 times]
>>
>> The above 5 attempts to enlarge at fullscreen does nothing.
>
> Then I have no idea what happens in your case. Maybe it's your
> version of librsvg, or maybe it's something else.
>
I tried downselecting the rsvg library in the package manager to prefer
the C only implementation, rebuilt Emacs and see the same behavior.
1 $ pkgin se rsvg
2 pkgin se rsvg
3 librsvg-2.58.0nb1 < SVG library for GNOME
4 librsvg-2.40.21nb18 = SVG library for GNOME (2.40.xx branch, C only)
5 ruby31-rsvg2-4.2.2nb1 Ruby binding of librsvg
6 ruby32-rsvg2-4.2.2nb1 Ruby binding of librsvg
7 ruby33-rsvg2-4.2.2nb1 Ruby binding of librsvg
8
9 =: package is installed and up-to-date
10 <: package is installed but newer version is available
11 >: installed package has a greater version than available package
> Can anyone reproduce this issue and debug it?
>
--
vl
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 12:31:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 73501 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> The above 5 attempts to enlarge at fullscreen does nothing.
>
> Then I have no idea what happens in your case. Maybe it's your
> version of librsvg, or maybe it's something else.
>
Control + Mouse 3 context menu to select Fit Image to Window will zoom
to enlarge fullscreen, see below
=> http://sdf.org/~van.ly/img/emacs-30-0-91-svg-image-fullscreen.jpeg
Countrol + Mouse 3 context menu to select Zoom In and Zoom Out will
enlarge/shrink as expected.
So it seems C-x C-+ and C-x C-- are not calling Zoom In and Zoom Out on
the svg image.
--
vl
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 13:02:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 73501 <at> debbugs.gnu.org (full text, mbox):
> From: Van Ly <van.ly <at> sdf.org>
> Cc: 73501 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 12:29:57 +0000
>
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >>
> >> The above 5 attempts to enlarge at fullscreen does nothing.
> >
> > Then I have no idea what happens in your case. Maybe it's your
> > version of librsvg, or maybe it's something else.
> >
>
> Control + Mouse 3 context menu to select Fit Image to Window will zoom
> to enlarge fullscreen, see below
>
> => http://sdf.org/~van.ly/img/emacs-30-0-91-svg-image-fullscreen.jpeg
>
> Countrol + Mouse 3 context menu to select Zoom In and Zoom Out will
> enlarge/shrink as expected.
>
> So it seems C-x C-+ and C-x C-- are not calling Zoom In and Zoom Out on
> the svg image.
What does "C-h c C-x C-+" tell you?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 13:08:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 73501 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
[...]
>> # Contents of *Messages*
>>
>> 1 For information about GNU Emacs and the GNU system, type C-h C-a.
>> 2 Type C-c C-c to view the image as text
>> 3 Use +, =, -, 0, C-+, C-=, C--, C-0 for further adjustment [5 times]
>>
>> The above 5 attempts to enlarge at fullscreen does nothing.
>
> Then I have no idea what happens in your case. Maybe it's your
> version of librsvg, or maybe it's something else.
>
> Can anyone reproduce this issue and debug it?
I can reproduce it. But I don't know if it is expected to work: "C-x
C-+" is `text-scale-adjust' and works with text buffers adjusting the
font size.
For an image buffer, I think one should use `image-increase-size' and
the like which are bound in a keymap starting with 'i'.
Maybe "C-x C-+" should be bound differently in an image buffer?
--
Manuel Giraud
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 14:26:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 73501 <at> debbugs.gnu.org (full text, mbox):
On Fri, Sep 27 2024, Eli Zaretskii wrote:
> Can anyone reproduce this issue and debug it?
`C-x C-=` / `C-x C--` don't change the image size for me either. However,
`i +` and `i -` do. Emacs 29.4, Arch Linux, Wayland.
--
Joost Kremers
Life has its moments
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 14:26:03 GMT)
Full text and
rfc822 format available.
Message #32 received at 73501 <at> debbugs.gnu.org (full text, mbox):
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Cc: Van Ly <van.ly <at> sdf.org>, 73501 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 15:06:34 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Can anyone reproduce this issue and debug it?
>
> I can reproduce it. But I don't know if it is expected to work: "C-x
> C-+" is `text-scale-adjust' and works with text buffers adjusting the
> font size.
>
> For an image buffer, I think one should use `image-increase-size' and
> the like which are bound in a keymap starting with 'i'.
>
> Maybe "C-x C-+" should be bound differently in an image buffer?
No, it shouldn't. I think this is just a misunderstanding: zoom-in
and zoom-out for images are bound to other keys, not to "C-x C-+". I
tried C-mouse-wheel instead, and it does zoom images.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73501
; Package
emacs
.
(Fri, 27 Sep 2024 18:05:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 73501 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> So it seems C-x C-+ and C-x C-- are not calling Zoom In and Zoom Out on
>> the svg image.
>
> What does "C-h c C-x C-+" tell you?
I think at the head of this bug report I mentioned text-scale-adjust.
Now, I know image scale adjust does not use C-x C-+ but i + and other
keybindings listed in the context menu on C-Mouse 3 button.
--
vl
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 12 Oct 2024 11:21:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Van Ly <van.ly <at> sdf.org>
:
bug acknowledged by developer.
(Sat, 12 Oct 2024 11:21:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 73501-done <at> debbugs.gnu.org (full text, mbox):
> From: Van Ly <van.ly <at> sdf.org>
> Cc: 73501 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 18:03:47 +0000
>
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> So it seems C-x C-+ and C-x C-- are not calling Zoom In and Zoom Out on
> >> the svg image.
> >
> > What does "C-h c C-x C-+" tell you?
>
> I think at the head of this bug report I mentioned text-scale-adjust.
>
> Now, I know image scale adjust does not use C-x C-+ but i + and other
> keybindings listed in the context menu on C-Mouse 3 button.
Thanks, closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 09 Nov 2024 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 274 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.