Skip to content

Unable to convert: SVG to ICO using ffmp #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JoelMiller74 opened this issue Apr 27, 2025 · 1 comment · Fixed by #296
Closed

Unable to convert: SVG to ICO using ffmp #269

JoelMiller74 opened this issue Apr 27, 2025 · 1 comment · Fixed by #296
Labels
enhancement New feature or request

Comments

@JoelMiller74
Copy link

I am using ConvertX latest. I am able to convert other types of files without issues. However, when trying to convert an SVG to ICO format, the only available option is using ffmpeg. Every file I try fails and clicking 'view' shows a page with this error:
ENOENT: no such file or directory, open './data/output/91464095044434/3/10018-icon-service-Azure-A.ico'

When I open the docker log, I get this information in the log. From what I can tell, it seems that ffmpeg needs to be compiled using --enable-librsvg as seen here: StackOverflow: Ffmpeg support for svg rasterization

2025/04/27 10:37:20	stdout	Error opening output files: Invalid argument
2025/04/27 10:37:20	stdout	Error opening output file ./data/output/91464095044434/3/10018-icon-service-Azure-A.ico.
2025/04/27 10:37:20	stdout	[vost#0:0/bmp @ 0x2acc0f87f380] Error initializing a simple filtergraph
2025/04/27 10:37:20	stdout	[vist#0:0/svg @ 0x2acc14c2cb40] Decoding requested, but no decoder found for: svg
2025/04/27 10:37:20	stdout	  Stream #0:0: Video: svg, none, 25 fps, 25 tbr, 25 tbn
2025/04/27 10:37:20	stdout	  Duration: N/A, bitrate: N/A
2025/04/27 10:37:20	stdout	Input #0, svg_pipe, from './data/uploads/91464095044434/3/10018-icon-service-Azure-A.svg':
2025/04/27 10:37:20	stdout	Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2025/04/27 10:37:20	stdout	[svg_pipe @ 0x2acc0f3a0600] Could not find codec parameters for stream 0 (Video: svg, none): unspecified size
2025/04/27 10:37:20	stdout	  libpostproc    57.  3.100 / 57.  3.100
2025/04/27 10:37:20	stdout	  libswresample   4. 12.100 /  4. 12.100
2025/04/27 10:37:20	stdout	  libswscale      7.  5.100 /  7.  5.100
2025/04/27 10:37:20	stdout	  libavfilter     9. 12.100 /  9. 12.100
2025/04/27 10:37:20	stdout	  libavdevice    60.  3.100 / 60.  3.100
2025/04/27 10:37:20	stdout	  libavformat    60. 16.100 / 60. 16.100
2025/04/27 10:37:20	stdout	  libavcodec     60. 31.102 / 60. 31.102
2025/04/27 10:37:20	stdout	  libavutil      58. 29.100 / 58. 29.100
2025/04/27 10:37:20	stdout	  configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
2025/04/27 10:37:20	stdout	  built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309
2025/04/27 10:37:20	stdout	ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
2025/04/27 10:37:20	stdout	�[0m�[31mFailed to convert ./data/uploads/91464095044434/3/10018-icon-service-Azure-A.svg from svg to ico using ffmpeg. error: Error: Command failed: ffmpeg -i ./data/uploads/91464095044434/3/10018-icon-service-Azure-A.svg -filter:v scale='min(256,iw)':min'(256,ih)':force_original_aspect_ratio=decrease ./data/output/91464095044434/3/10018-icon-service-Azure-A.ico
2025/04/27 10:37:20	stdout	�[0m
2025/04/27 10:37:20	stdout	Error opening output files: Invalid argument
2025/04/27 10:37:20	stdout	Error opening output file ./data/output/91464095044434/3/10018-icon-service-Azure-A.ico.
2025/04/27 10:37:20	stdout	[vost#0:0/bmp @ 0x2acc0f87f380] Error initializing a simple filtergraph
2025/04/27 10:37:20	stdout	[vist#0:0/svg @ 0x2acc14c2cb40] Decoding requested, but no decoder found for: svg
2025/04/27 10:37:20	stdout	  Stream #0:0: Video: svg, none, 25 fps, 25 tbr, 25 tbn
2025/04/27 10:37:20	stdout	  Duration: N/A, bitrate: N/A
2025/04/27 10:37:20	stdout	Input #0, svg_pipe, from './data/uploads/91464095044434/3/10018-icon-service-Azure-A.svg':
2025/04/27 10:37:20	stdout	Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2025/04/27 10:37:20	stdout	[svg_pipe @ 0x2acc0f3a0600] Could not find codec parameters for stream 0 (Video: svg, none): unspecified size
2025/04/27 10:37:20	stdout	  libpostproc    57.  3.100 / 57.  3.100
2025/04/27 10:37:20	stdout	  libswresample   4. 12.100 /  4. 12.100
2025/04/27 10:37:20	stdout	  libswscale      7.  5.100 /  7.  5.100
2025/04/27 10:37:20	stdout	  libavfilter     9. 12.100 /  9. 12.100
2025/04/27 10:37:20	stdout	  libavdevice    60.  3.100 / 60.  3.100
2025/04/27 10:37:20	stdout	  libavformat    60. 16.100 / 60. 16.100
2025/04/27 10:37:20	stdout	  libavcodec     60. 31.102 / 60. 31.102
2025/04/27 10:37:20	stdout	  libavutil      58. 29.100 / 58. 29.100
2025/04/27 10:37:20	stdout	  configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
2025/04/27 10:37:20	stdout	  built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309
2025/04/27 10:37:20	stdout	�[0m�[31mstderr: ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
2025/04/27 10:36:17	stdout	jobId set to: �[0m�[33m3�[0m
2025/04/27 10:35:49	stdout	Converted ./data/uploads/160641448933748/2/10018-icon-service-Azure-A.png from png to jpeg successfully using vips. Done
2025/04/27 10:35:30	stdout	jobId set to: �[0m�[33m2�[0m
2025/04/27 10:28:15	stdout	�[0m
2025/04/27 10:28:15	stdout	Error opening output files: Invalid argument
2025/04/27 10:28:15	stdout	Error opening output file ./data/output/239788599009669/1/10795-icon-service-Cubes.ico.
2025/04/27 10:28:15	stdout	[vost#0:0/bmp @ 0x2b049b196380] Error initializing a simple filtergraph
2025/04/27 10:28:15	stdout	[vist#0:0/svg @ 0x2b04a0543b40] Decoding requested, but no decoder found for: svg
2025/04/27 10:28:15	stdout	  Stream #0:0: Video: svg, none, 25 fps, 25 tbr, 25 tbn
2025/04/27 10:28:15	stdout	  Duration: N/A, bitrate: N/A
2025/04/27 10:28:15	stdout	Input #0, svg_pipe, from './data/uploads/239788599009669/1/10795-icon-service-Cubes.svg':
2025/04/27 10:28:15	stdout	Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2025/04/27 10:28:15	stdout	[svg_pipe @ 0x2b049acb7600] Could not find codec parameters for stream 0 (Video: svg, none): unspecified size
2025/04/27 10:28:15	stdout	  libpostproc    57.  3.100 / 57.  3.100
2025/04/27 10:28:15	stdout	  libswresample   4. 12.100 /  4. 12.100
2025/04/27 10:28:15	stdout	  libswscale      7.  5.100 /  7.  5.100
2025/04/27 10:28:15	stdout	  libavfilter     9. 12.100 /  9. 12.100
2025/04/27 10:28:15	stdout	  libavdevice    60.  3.100 / 60.  3.100
2025/04/27 10:28:15	stdout	  libavformat    60. 16.100 / 60. 16.100
2025/04/27 10:28:15	stdout	  libavcodec     60. 31.102 / 60. 31.102
2025/04/27 10:28:15	stdout	  libavutil      58. 29.100 / 58. 29.100
2025/04/27 10:28:15	stdout	  configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
2025/04/27 10:28:15	stdout	  built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309
2025/04/27 10:28:15	stdout	ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
2025/04/27 10:28:15	stdout	�[0m�[31mFailed to convert ./data/uploads/239788599009669/1/10795-icon-service-Cubes.svg from svg to ico using ffmpeg. error: Error: Command failed: ffmpeg -i ./data/uploads/239788599009669/1/10795-icon-service-Cubes.svg -filter:v scale='min(256,iw)':min'(256,ih)':force_original_aspect_ratio=decrease ./data/output/239788599009669/1/10795-icon-service-Cubes.ico
2025/04/27 10:28:15	stdout	�[0m
2025/04/27 10:28:15	stdout	Error opening output files: Invalid argument
2025/04/27 10:28:15	stdout	Error opening output file ./data/output/239788599009669/1/10795-icon-service-Cubes.ico.
2025/04/27 10:28:15	stdout	[vost#0:0/bmp @ 0x2b049b196380] Error initializing a simple filtergraph
2025/04/27 10:28:15	stdout	[vist#0:0/svg @ 0x2b04a0543b40] Decoding requested, but no decoder found for: svg
2025/04/27 10:28:15	stdout	  Stream #0:0: Video: svg, none, 25 fps, 25 tbr, 25 tbn
2025/04/27 10:28:15	stdout	  Duration: N/A, bitrate: N/A
2025/04/27 10:28:15	stdout	Input #0, svg_pipe, from './data/uploads/239788599009669/1/10795-icon-service-Cubes.svg':
2025/04/27 10:28:15	stdout	Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2025/04/27 10:28:15	stdout	[svg_pipe @ 0x2b049acb7600] Could not find codec parameters for stream 0 (Video: svg, none): unspecified size
2025/04/27 10:28:15	stdout	  libpostproc    57.  3.100 / 57.  3.100
2025/04/27 10:28:15	stdout	  libswresample   4. 12.100 /  4. 12.100
2025/04/27 10:28:15	stdout	  libswscale      7.  5.100 /  7.  5.100
2025/04/27 10:28:15	stdout	  libavfilter     9. 12.100 /  9. 12.100
2025/04/27 10:28:15	stdout	  libavdevice    60.  3.100 / 60.  3.100
2025/04/27 10:28:15	stdout	  libavformat    60. 16.100 / 60. 16.100
2025/04/27 10:28:15	stdout	  libavcodec     60. 31.102 / 60. 31.102
2025/04/27 10:28:15	stdout	  libavutil      58. 29.100 / 58. 29.100
2025/04/27 10:28:15	stdout	  configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
2025/04/27 10:28:15	stdout	  built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309
2025/04/27 10:28:15	stdout	�[0m�[31mstderr: ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
@C4illin C4illin added the enhancement New feature or request label May 6, 2025
C4illin added a commit that referenced this issue May 23, 2025
@JoelMiller74
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants