mirror of https://github.com/GNOME/gimp.git
39ea23ed52
I'm moving the logic of choosing a correct default for width/height by adding an "extract dimensions" callback in the procedure. The logic is that every vector format out there should likely have metadata either for pixel dimensions or physical dimensions, or at the very least for no-unit dimensions (ratio only). Vector load procedures will have to implement only the extraction of such data in a callback called by GIMP but not how to act upon them, so that we have a common logic for all vector images. I am implementing this callback first in the SVG plug-in, moving all the code to extract dimensions (and improving it) in this callback. Also I am deleting "file-svg-load-thumb" procedure. I could simply reimplement it using the same code, but it looks to me like this is very useless for vector formats to have a specific thumbnail procedure (unless it were to use very specific metadata for faster result). This is vector data, just ask it directly at the proper bounding box size. |
||
---|---|---|
.. | ||
files | ||
gimpdir | ||
gimpdir-empty | ||
create_test_env.sh | ||
gimp-app-test-utils.c | ||
gimp-app-test-utils.h | ||
gimp-test-session-utils.c | ||
gimp-test-session-utils.h | ||
manual-testcases.txt | ||
meson.build | ||
test-core.c | ||
test-gimpidtable.c | ||
test-save-and-export.c | ||
test-session-2-8-compatibility-multi-window.c | ||
test-session-2-8-compatibility-single-window.c | ||
test-single-window-mode.c | ||
test-tools.c | ||
test-ui.c | ||
test-xcf.c | ||
tests.c | ||
tests.h |