Browse Source

Fix for resize.

pull/486/head
Sebastian 6 years ago
parent
commit
8ea65b208d
  1. 2
      backend/src/Squidex.Infrastructure/Assets/ImageSharp/ImageSharpAssetThumbnailGenerator.cs

2
backend/src/Squidex.Infrastructure/Assets/ImageSharp/ImageSharpAssetThumbnailGenerator.cs

@ -49,7 +49,7 @@ namespace Squidex.Infrastructure.Assets.ImageSharp
throw new NotSupportedException();
}
if (w > 0 && h > 0)
if (w > 0 || h > 0)
{
var isCropUpsize = options.Mode == ResizeMode.CropUpsize;

Loading…
Cancel
Save