extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Media Converter] Can't convert HEIC to PNG/JPG

Open wahyuabrory opened this issue 11 months ago • 7 comments

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.

wahyuabrory avatar Dec 14 '25 05:12 wahyuabrory

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 issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot close as duplicate Closes the issue as duplicate.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Dec 14 '25 05:12 raycastbot

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?

glypse avatar Dec 14 '25 08:12 glypse

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.

glypse avatar Dec 14 '25 08:12 glypse

@raycastbot keep this issue open

glypse avatar Dec 14 '25 08:12 glypse

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

wahyuabrory avatar Dec 14 '25 14:12 wahyuabrory

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.

wahyuabrory avatar Dec 14 '25 14:12 wahyuabrory

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.

glypse avatar Dec 14 '25 15:12 glypse