use a empty jpeg instead of a null byte

This commit is contained in:
Syping 2025-10-24 15:57:09 +02:00
parent a36c2c467b
commit 90362c07eb
5 changed files with 216 additions and 3 deletions

View file

@ -1,6 +1,6 @@
using RagePhoto;
using System.CommandLine;
using System.CommandLine;
using System.Text;
namespace RagePhoto.Cli;
internal static class Program {
@ -89,7 +89,7 @@ internal static class Program {
photo.Title = title;
if (jpegFile == string.Empty) {
photo.Jpeg = new Byte[1];
photo.Jpeg = Properties.Resources.EmptyJpeg;
}
else if (jpegFile != null) {
using MemoryStream jpegStream = new();