You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment: All environments (tested locally with SC 8.2.5 and Azure PaaS with SC 9.0.1)
Configuration:
Sync strategy
Lossless JPEG (progressive) optimization
Lossless PNG optimization
Description:
When certain errors occur during optimization using Sync strategy, instead of rendering the original image, an error is returned. Locally, the resulting "yellow page" gives the following output:
This has me worrying that any error using Sync setup will result in a 500 error, instead of just letting Sitecore take over.
How to reproduce:
I have two files. One is actually a WEBP with the .jpg extension. The other is a deliberately corrupted image (but which can still render, partially, in most tools).
This is meant to reproduce issues that we have noticed in the past in our Media Library. Since we have many contributors, it's not always easy to track down the reason for such issues, or to prevent them from happening.
To reproduce:
Upload both files to Media Library, one at a time (not using Upload Advanced). Sitecore will give you an error with the corrupted image, but if you refresh, you will see it is there.
Publish the images.
Open the images in browser with Dianoga configured as above. This will result in an error.
Remove the Dianoga configs and try again. Without Dianoga, the images are rendered in the browser.
Other logs
Here is the Dianoga log output for each image:
test1-webp.jpg:
ERROR Dianoga: Unable to optimize /test1-webp due to a processing error! It will be unchanged.
Exception: System.InvalidOperationException
Message: "C:\inetpub\wwwroot\sc825\Website\App_Data\Dianoga Tools\mozjpeg_3.3.1_x86\jpegtran.exe -optimize -copy none -progressive -outfile "C:\WINDOWS\TEMP\tmp5765.tmp" "C:\WINDOWS\TEMP\tmp5764.tmp"" exited with unexpected exit code 1. Output: Not a JPEG file: starts with 0x52 0x49
test2-corrupted.jpg:
ERROR Dianoga: Unable to optimize /test2-corrupted due to a processing error! It will be unchanged.
Exception: System.InvalidOperationException
Message: "C:\inetpub\wwwroot\sc825\Website\App_Data\Dianoga Tools\mozjpeg_3.3.1_x86\jpegtran.exe -optimize -copy none -progressive -outfile "C:\WINDOWS\TEMP\tmpCF49.tmp" "C:\WINDOWS\TEMP\tmpCF48.tmp"" exited with unexpected exit code 1. Output: Unsupported marker type 0x20
Corrupt JPEG data: premature end of data segment
The text was updated successfully, but these errors were encountered:
Environment
Configuration:
Description:
When certain errors occur during optimization using Sync strategy, instead of rendering the original image, an error is returned. Locally, the resulting "yellow page" gives the following output:
This has me worrying that any error using Sync setup will result in a 500 error, instead of just letting Sitecore take over.
How to reproduce:
I have two files. One is actually a WEBP with the
.jpg
extension. The other is a deliberately corrupted image (but which can still render, partially, in most tools).This is meant to reproduce issues that we have noticed in the past in our Media Library. Since we have many contributors, it's not always easy to track down the reason for such issues, or to prevent them from happening.
To reproduce:
Upload both files to Media Library, one at a time (not using Upload Advanced). Sitecore will give you an error with the corrupted image, but if you refresh, you will see it is there.
Publish the images.
Open the images in browser with Dianoga configured as above. This will result in an error.
Remove the Dianoga configs and try again. Without Dianoga, the images are rendered in the browser.
Other logs
Here is the Dianoga log output for each image:
test1-webp.jpg:
test2-corrupted.jpg:
The text was updated successfully, but these errors were encountered: