Hi again,I tried to make sense of the scaling factor options and can’t believe that they work as intended.
* default = min: width and height observed, image distorted (good for default, probably wrong for min)* fit = auto: proportional scaling, should fill available space as possible, but behaves sometimes as "max"
* max = prop. scaling to use bigger side of the image, can exceed height * broad = prop. shrinking that I can’t understand Find an example attached where I tried to find out what’s going on. %%% A different issue:None of the options allows filling the available space and clipping the remaining image. I found a stackexchange thread[1] that refers to a ML discussion in 2014[2], when Aditya provided some code[3] (clean but “oldfashioned”).
Wolfgang suggested at that time to include it in the distribution as "factor=clip".
The consecutive feature request will be to make the clipped side configurable (top/bottom/left/right).
I have some convoluted old code of my own that works, but I’m quite sure this is something others might want, too.
Hraban [1] https://tex.stackexchange.com/a/370718[2] https://lists.contextgarden.net/archives/list/[email protected]/thread/QXU4IY7MEMEB2WMCFXY2OV33OFMHGG3X/#VJCLK4XJG2K3USB5RMJXZK7EMFNDWHDO [3] preliminary saved at https://codeberg.org/fiee/context-examples/src/branch/master/scaleandclip/t-scaleandclip.tex
scaletest.tex
Description: TeX document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / 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 ___________________________________________________________________________________
