diff --git a/src/Squidex.Infrastructure/Assets/ImageSharp/ImageSharpAssetThumbnailGenerator.cs b/src/Squidex.Infrastructure/Assets/ImageSharp/ImageSharpAssetThumbnailGenerator.cs
index 1bfa03584..7d8566dbb 100644
--- a/src/Squidex.Infrastructure/Assets/ImageSharp/ImageSharpAssetThumbnailGenerator.cs
+++ b/src/Squidex.Infrastructure/Assets/ImageSharp/ImageSharpAssetThumbnailGenerator.cs
@@ -38,8 +38,8 @@ namespace Squidex.Infrastructure.Assets.ImageSharp
resizeMode = ResizeMode.Max;
}
- var w = width ?? int.MaxValue;
- var h = height ?? int.MaxValue;
+ var w = width ?? 0;
+ var h = height ?? 0;
using (var sourceImage = Image.Load(source, out var format))
{
diff --git a/src/Squidex/Areas/Api/Controllers/Assets/AssetContentController.cs b/src/Squidex/Areas/Api/Controllers/Assets/AssetContentController.cs
index 9e1ec9fdd..d443cc17a 100644
--- a/src/Squidex/Areas/Api/Controllers/Assets/AssetContentController.cs
+++ b/src/Squidex/Areas/Api/Controllers/Assets/AssetContentController.cs
@@ -46,7 +46,6 @@ namespace Squidex.Areas.Api.Controllers.Assets
///
/// Get the asset content.
///
- /// The name of the app.
/// The id of the asset.
/// The optional version of the asset.
/// The target width of the asset, if it is an image.
@@ -60,7 +59,7 @@ namespace Squidex.Areas.Api.Controllers.Assets
[Route("assets/{id}/")]
[ProducesResponseType(200)]
[ApiCosts(0.5)]
- public async Task GetAssetContent(string app, Guid id, [FromQuery] int version = -1, [FromQuery] int? width = null, [FromQuery] int? height = null, [FromQuery] string mode = null)
+ public async Task GetAssetContent(Guid id, [FromQuery] int version = -1, [FromQuery] int? width = null, [FromQuery] int? height = null, [FromQuery] string mode = null)
{
var entity = await assetRepository.FindAssetAsync(id);