Jump to content

Error trying to add Indicator Overlays using CoverArt4


Go to solution Solved by PontusN,

Recommended Posts

  • Solution

Im trying to add a custom indicator overlay to my movies. I have added a hdtype_UHD.png file that I want to use, and CoverArt is trying to apply them but encounters an error as stated in the logs below. Permisions should not be an issue.

EDIT: Solved! The image was too big. Max res is 236*354 (w*h)


2020-12-03 13:43:03.877 Info HttpServer: HTTP Response 200 to Time: 30ms. ConnectionId: 0HM4NH3BFPI81
2020-12-03 13:43:03.882 Info CoverArt: image enhance of Men in Black 3 took 0.011 seconds.
2020-12-03 13:43:03.882 Error ImageProcessor: Error enhancing image
    *** Error Report ***
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Linux version 5.8.0-7625-generic (buildd@lgw01-amd64-031) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #26~160338
    Framework: .NET Core 3.1.7
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    System.ArgumentNullException: System.ArgumentNullException: Value cannot be null. (Parameter 'image')
       at SkiaSharp.SKCanvas.DrawImage(SKImage image, SKRect dest, SKPaint paint)
       at CoverArt.Skia.CAHelper.DrawImage(SKBitmap destination, SKBitmap source, Rectangle destinationRect, Rectangle sourceRect)
       at CoverArt.Skia.CoverArtBaseEnhancer.DrawOverlay(SKBitmap work, OverlayDefinition oDef, IEnumerable`1 imagePaths, Size imgSize, SKBitmap explicitImage)
       at CoverArt.Skia.CoverArtBaseEnhancer.ApplyOverlays(ProfileDefinition profile, BaseItem item, SKBitmap newImage, Size imgSize)
       at CoverArt.Skia.CoverArtBaseEnhancer.EnhanceImage(SKBitmap originalImage, ProfileDefinition profile, String itemType, String frameType, BaseItem item, List`1 childImages)
       at CoverArt.Skia.CoverArtMovieEnhancer.EnhanceImageAsyncInternal(BaseItem item, SKBitmap originalImage, ImageType imageType, Int32 imageIndex)
       at CoverArt.Skia.CoverArtBaseEnhancer.EnhanceImageAsync(BaseItem item, String inputPath, String outputPath, ImageType imageType, Int32 imageIndex)
       at CoverArt.Enhancers.CoverArtBaseEnhancer.EnhanceImageAsync(BaseItem item, String inputFile, String outputFile, ImageType imageType, Int32 imageIndex)
       at Emby.Drawing.ImageProcessor.ExecuteImageEnhancers(IEnumerable`1 imageEnhancers, String inputPath, String outputPath, BaseItem item, ImageType imageType, Int32 imageIndex)
       at Emby.Drawing.ImageProcessor.GetEnhancedImageInternal(String originalImagePath, BaseItem item, ImageType imageType, Int32 imageIndex, IImageEnhancer[] supportedEnhancers, String cacheGuid, CancellationToken cancellationToken)
       at Emby.Drawing.ImageProcessor.GetEnhancedImage(ItemImageInfo image, Boolean inputImageSupportsTransparency, BaseItem item, Int32 imageIndex, IImageEnhancer[] enhancers, CancellationToken cancellationToken)
    Source: SkiaSharp
    TargetSite: Void DrawImage(SkiaSharp.SKImage, SkiaSharp.SKRect, SkiaSharp.SKPaint)



Edited by PontusN
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...