Implemented the LastWrite check for Summaries and Series Cover Images. Removed a TODO after validation.

This commit is contained in:
Joseph Milazzo 2021-03-24 07:41:52 -05:00
parent f85918b5bf
commit c639b8ca04
2 changed files with 12 additions and 5 deletions

View file

@ -203,7 +203,7 @@ namespace API.Services
{
formatExtension = "." + formatExtension;
}
// TODO: Validate if jpeg is same as jpg
try
{
using var thumbnail = Image.ThumbnailBuffer(entry, ThumbnailWidth);
@ -227,7 +227,7 @@ namespace API.Services
{
using var stream = entry.Open();
using var thumbnail = Image.ThumbnailStream(stream, ThumbnailWidth);
return thumbnail.WriteToBuffer(formatExtension); // TODO: Validate this code works with .png files
return thumbnail.WriteToBuffer(formatExtension);
}
catch (Exception ex)
{