Re: [Tuxpaint-devel] Per-locale default font
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Shin-ichi T. <dol...@wm...> - 2023-06-17 13:01:29
|
Hi! On Sat, 17 Jun 2023 09:05:52 +0900, Shin-ichi TOYAMA wrote: >How do I check if the fake incscape method is working correctly? I tweaked the fake inkscape to write debug log as follows. ----------------------------------------------------------------------- echo-thumb-starters: @echo @echo "...Generating thumbnails for starters..." @echo "# Don't let ImageMagick use Inkscape; use rsvgconvert instead" > ./inkscape @echo "echo Fake inkscape invoked >> fake.log" >> ./inkscape @echo "exit 1" >> ./inkscape @chmod 755 ./inkscape @(eval export PATH="$(shell pwd)":"$(PATH)") ----------------------------------------------------------------------- At first, I tested it on Rocky 9 linux. It looks like the fake inkscape is not called because the "fake.log" file is not created. I guess modified PATH environment variable here affects only to the subshell. Next I replaced the "eval" line with the one Mark suggested, ----------------------------------------------------------------------- $(eval export PATH=$(shell pwd):$(PATH)) ----------------------------------------------------------------------- and *got* the "fake.log" file. On the other hand, both original code and Mark's one did not create the "fake.log" file on Windows. Therefore, I simply ran convert command on Linux and Windows. The result was [ Linux ] --------------- [toyama@rocky9 tuxpaint]$ convert -verbose starters/fish_icon.svg fish_icon2.svg 'inkscape' '/tmp/magick-LyWuJyZdCkEYr-nzgHilo5hNBUMB3sBv' --export-filename='/tmp/magick-F2sFztT4Ha-sp2e13FKriomVW_1aGFj6.png' --export-dpi='96' --export-background='rgb(100%,100%,100%)' --export-background-opacity='1' > '/tmp/magick-t-yhM4iKZM0BE1Ycg6r82LZpE5i9UoAT' 2>&1 /tmp/magick-F2sFztT4Ha-sp2e13FKriomVW_1aGFj6.png PNG 559x478 559x478+0+0 8-bit sRGB 49984B 0.020u 0:00.008 starters/fish_icon.svg SVG 559x478 559x478+0+0 8-bit sRGB 49984B 0.000u 0:00.000 starters/fish_icon.svg=>fish_icon2.svg PNM 559x478 559x478+0+0 8-bit sRGB 801621B 0.000u 0:00.022 --------------- [ Windows ] --------------- mingw64:$ convert -verbose starters/fish_icon.svg fish_icon2.svg starters/fish_icon.svg SVG 559x478 559x478+0+0 16-bit sRGB 5779B 0.000u 0:00.011 starters/fish_icon.svg=>fish_icon2.svg SVG 559x478 559x478+0+0 16-bit sRGB 31474B 0.031u 0:00.032 --------------- So, ImageMagick convert for Window is not likely to try inkscape even inkscape is installed. Judging from all above, I suppose we should adopt Mark's correction for "eval" line. Thanks. |