* Rafael Laboissière <raf...@debian.org> [2024-10-07 09:05]:
Control: tags -1 + confirmed upstream
* Bill Allombert <ballo...@debian.org> [2024-10-06 22:52]:
fim does not seem to be able to display SVG even with inkscape
installed, even while it works when doing inkscape logo.svg
--export-filename=- --export-type=png | fim -i
This happens because fim is still using (in file src/FbiStuff.cpp) the
old export-related cli option "--export-png". This option does not
work with inkscape >= 1.0, which is the case in Debian since bullseye.
I might put in place a patch for the package in order to fix the
problem, but it would be better if Michele takes care of that,
upstream. In particular, he might be interested in keeping
compatibility with older versions of Inkscape, in which case the
changes in the code would be more consequential.
Attached to this message is the patch that makes the fim package works
with the latest version of Inkscape. I will integrate it and upload
the package, as soon as I fix other new building issues.
Best,
Rafael
Description: Use modern export option for Inkscape
Author: Rafael Laboissière <raf...@debian.org>
Bug-Debian: https://bugs.debian.org/1084226
Forwarded: no
Last-Update: 2024-10-07
--- fim-0.7.1.orig/src/FbiStuff.cpp
+++ fim-0.7.1/src/FbiStuff.cpp
@@ -2209,7 +2209,7 @@ probe_loader:
//sprintf(command,FIM_EPR_INKSCAPE" \"%s\" --without-gui --export-png \"%s\"", filename,tpfn);
// The following are the arguments to inkscape in order to convert an SVG into PNG:
if(vl>1)FIM_VERB_PRINTF("probing " FIM_EPR_INKSCAPE " ..\n");
- if(FIM_NULL!=(fp=FIM_TIMED_EXECLP(FIM_EPR_INKSCAPE,filename,"--without-gui","--export-png",tpfn.c_str(),FIM_NULL))&&0==fim_fclose(fp))
+ if(FIM_NULL!=(fp=FIM_TIMED_EXECLP(FIM_EPR_INKSCAPE,filename,"--without-gui","--export-type=png","--export-filename",tpfn.c_str(),FIM_NULL))&&0==fim_fclose(fp))
{
if (FIM_NULL == (fp = fim_fopen(tpfn,"r")))
{