-
I've created a pdf format (and decoder) based on PdfLibCore, which I was going to use to be able to do thumbnails of pdf files. I've pushed the code to https://github.com/skttl/ImageSharpCommunity.Format.Pdf, and I intent to publish it to use for free on Nuget, when I get it working. It works, when used just with ImageSharp, eg. in my TestApp console app, it opens up the pdf file, resizes to 100x100 and saves it as a png. However, when I try to add it to a web app using ImageSharp.Web it fails. If I set breakpoints in PdfFormatDetector, I can see that it gets into this twice. First before actually doing anything in Decode, and then after loading the image as The end result is a 500 error page with this error:
Anyone know what I'm doing wrong here? Feels like ImageSharp.Web does more than ImageSharp does. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I found it! I needed to add an encoder too :) |
Beta Was this translation helpful? Give feedback.
I found it! I needed to add an encoder too :)