mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
When rendering with Go image libraries fails fallback to ImageMagick
This commit is contained in:
@@ -712,7 +712,7 @@ func OpenImageFromPath(path string) (ans *ImageData, err error) {
|
||||
defer f.Close()
|
||||
ans, err = OpenNativeImageFromReader(f)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Failed to load image at %#v with error: %w", path, err)
|
||||
return OpenImageFromPathWithMagick(path)
|
||||
}
|
||||
} else {
|
||||
return OpenImageFromPathWithMagick(path)
|
||||
|
||||
Reference in New Issue
Block a user