The scaling in \externalfigure[][] with option sy=number seems to have a discrete change in behaviour between sy=1.0 and sy=(not 1.0).
The MWE (see below, FIGURE REMOVED BECAUSE OTHERWISE  MESSAGE TOO LARGE) shows that factor sy≠1.0 is applied to the original height of the figure, but for sy=1.0 the height is changed proportional to the reduction in width.
Thus the series sy=0.999 sy=1.0 sy=1.001 has a discontinuity in the scaling of height.
I would expect sy=1.0 to return the figure in the original height.

Is this behaviour on purpose? With the current behaviour I must provide for sy=1.0 => sy=1.001 in order to get the original height. Although not to difficult with a jump to Lua code, I would prefer not.

yours sincerely
dr. Hans van der Meer



\starttext
\ConTeXt\space version \contextversion\blank

\type{\externalfigure[testfile.jpg]} source figure\crlf
\externalfigure[testfile.jpg]\crlf

\type{\externalfigure[testfile.jpg][width=5cm]}\crlf
\externalfigure[testfile.jpg][width=5cm]\crlf
Explanation: height scaled proportional to the width reduction.
\blank

\type{\externalfigure[testfile.jpg][width=5cm,sy=0.999]}\crlf
\externalfigure[testfile.jpg][width=5cm,sy=1.001]\crlf
Explanation: sy different from 1.0 applies sy to original height.
\blank

\type{\externalfigure[testfile.jpg][width=5cm,sy=1.0]}\crlf
\externalfigure[testfile.jpg][width=5cm,sy=1.0]\crlf
Explanation: sy=1.0 exactly is ignored?
\blank

\type{\externalfigure[testfile.jpg][width=5cm,sy=1.001]}\crlf
\externalfigure[testfile.jpg][width=5cm,sy=1.001]\crlf
Explanation: sy different from 1.0 applies sy to original height.
\blank

\stoptext



Attachment: testsyscaling.pdf
Description: Adobe PDF document



met vriendelijke groet,
dr. Hans van der Meer
Burgemeester Rijnderslaan 244 ingang D
1185 MC Amstelveen
tel. 020 6452701 / 06 53743629

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to