[backend/drive] Fix LibVips autorot error
The error message said that the operation must be mutable, but it only works when the operation is not mutable. Oh well.
This commit is contained in:
parent
871c20c3fa
commit
f7a5d86326
1 changed files with 2 additions and 2 deletions
|
@ -112,9 +112,9 @@ public class VipsProcessor : ImageProcessorBase, IImageProcessor
|
||||||
|
|
||||||
private static Image StripMetadata(Image image)
|
private static Image StripMetadata(Image image)
|
||||||
{
|
{
|
||||||
return image.Mutate(mutable =>
|
using var intermediate = image.Autorot();
|
||||||
|
return intermediate.Mutate(mutable =>
|
||||||
{
|
{
|
||||||
mutable.Autorot();
|
|
||||||
foreach (var field in mutable.GetFields())
|
foreach (var field in mutable.GetFields())
|
||||||
{
|
{
|
||||||
if (field is "icc-profile-data") continue;
|
if (field is "icc-profile-data") continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue