[Media Converter] Can't convert HEIC to PNG/JPG
Extension
https://www.raycast.com/leandro.maia/media-converter
Raycast Version
v0.39.1.0
macOS Version
Windows 11 25H2
Description
The Raycast Media Converter extension fails to convert HEIC images to PNG or JPG on Windows, even when a custom FFmpeg binary with libheif support is explicitly configured.
The same FFmpeg binary successfully converts the same HEIC file when executed manually via command line, which indicates the issue lies in how Raycast invokes FFmpeg or constructs the command, not in FFmpeg itself.
Additional Notes: Manual conversion using the same FFmpeg binary works without issue:
ffmpeg -i "C:\Main Storage\Downloads\IMG_7288.HEIC" -frames:v 1 "C:\Main Storage\Downloads\IMG_7288.png"
This confirms:
- FFmpeg is correctly installed.
- HEIC decoding via libheif works.
- The input file is valid.
- The -compression_level flag is either invalid or ignored for PNG in FFmpeg and may be causing the failure.
- The issue appears to stem from Raycast’s command construction or execution context on Windows.
Steps To Reproduce
Install FFmpeg full build with libheif enabled (verified working).
Configure Raycast Media Converter to use a custom FFmpeg binary:
C:\ffmpeg\bin\ffmpeg.exe
Attempt to convert a .HEIC file to .png or .jpg using the Media Converter extension.
Observe that conversion fails or produces no output.
Current Behaviour
Conversion fails silently or does not produce the expected output.
Raycast attempts to execute the following command internally:
"C:\ffmpeg\bin\ffmpeg.exe" -i "C:\Main Storage\Downloads\IMG_7288.HEIC" -compression_level 100 -y "C:\Main Storage\Downloads\IMG_7288.png"
Even when the command is executed, the output image is not generated.
No meaningful error message is surfaced to the user.
Expected Behaviour
Raycast should successfully convert HEIC files to PNG or JPG when:
-
A valid FFmpeg binary with HEIC (libheif) support is provided.
-
The same conversion works via manual FFmpeg invocation.
Raycast should:
-
Use valid FFmpeg arguments for the target format.
-
Execute FFmpeg in a way that matches standard Windows shell behavior.
-
Surface FFmpeg stderr output when conversion fails.
Thank you for opening this issue!
🔔 @llfmaia @wattmalsh @samuelkraft @Glypse you might want to have a look.
💡 Author and Contributors commands
The author and contributors of leandro.maia/media-converter can trigger bot actions by commenting:
@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot close as duplicateCloses the issue as duplicate.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
Thank you for reporting this! So this is a duplicate issue of #20166, but it has a lot of interesting information, so if that's okay I think I'll keep it open.
Mainly: you can convert from .heic on Windows? No matter what I tested, I thought it couldn't be done. I didn't know they had optional support for libheif, but this is a custom-built binary, right? Not the type officially distributed from FFmpeg's website/package managers?
Fyi, we're planning to drop FFmpeg for image conversion and use Sharp instead anyways. But Leandro and I have been quite busy and we haven't been able to roll out an update in a bit, and that update would be a big rewrite. We'll keep you updated.
@raycastbot keep this issue open
I just installed FFmpeg from Gyan’s full build. I thought it couldn’t convert HEIC to PNG/JPG, but after trying it, I discovered it can convert to PNG
Thanks for the clarification. That direction makes sense for image workflows, especially for HEIC reliability on Windows.
One question to align expectations on the roadmap: will FFmpeg remain the backend for video conversion, with Sharp used exclusively for static image formats, or is there any plan to refactor the video pipeline as part of the same rewrite? Given Sharp’s scope, keeping FFmpeg for video seems unavoidable, so it would be helpful to understand whether the rewrite is image-only or a broader media architecture change.
One question to align expectations on the roadmap: will FFmpeg remain the backend for video conversion, with Sharp used exclusively for static image formats, or is there any plan to refactor the video pipeline as part of the same rewrite?
Yes, FFmpeg will be kept for video and audio.