-
I have found some images that won't return from the call below. Some do. All of my code came out of the demo app, but the demo app site doesn't have problems with the same images.
I have put together a minimal page that will show the issue. Since the demo app works ok with the images there seems to be something I am doing wrong in code. At a loss as to what it is though. If there is a better way to show the code, let me know. I also tried replacing the image and that failed the same way Page that illustrates the issue. this page wouldn't show mark up preview as text or code so put a screenshot in for that. @page "/" <button type="submit" @OnClick="@save">Crop Image `
} I have attached 2 images. it embedded them. Not sure if I can attach them another way. Cano.jpg, does not work. Sully.jpg works |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
I have narrowed this down to having something to do with the maxwidth and maxheight. I used 4096 as that was what the sample code did. changing to 2048 seems to have helped. Doesn't seem to matter if that is bigger than the image at 2048 either. Not sure what the issue is with the higher number. Change I made is below. Then the images that were not working returned.
|
Beta Was this translation helpful? Give feedback.
-
Hi @kwoeste11 . What do you pass into |
Beta Was this translation helpful? Give feedback.
-
@MaxymGorn , I read it from the file when I load the file. jpg's come back as "image/jpeg" for the samples I am using. seen below in the sample code I put in the original post. Doesn't seem to want to bold. ** inidcates the line `
|
Beta Was this translation helpful? Give feedback.
found the issue. I had set the message max as was in the docs
I had
builder.Services.AddServerSideBlazor() .AddHubOptions(options => { options.MaximumReceiveMessageSize = 32 * 1024 * 100; });
Changing it to what is below solved the issue
builder.Services.AddServerSideBlazor() .AddHubOptions(options => { options.MaximumReceiveMessageSize = 1024 * 1024 * 100; });