diff --git a/Marechai/Pages/Admin/Details/Book.razor b/Marechai/Pages/Admin/Details/Book.razor index 3a9e611c..4f2a0267 100644 --- a/Marechai/Pages/Admin/Details/Book.razor +++ b/Marechai/Pages/Admin/Details/Book.razor @@ -42,6 +42,8 @@ @inject BooksByMachineService BooksByMachineService @inject DocumentPeopleService PeopleService @inject PeopleByBookService PeopleByBookService +@inject IFileReaderService FileReaderService +@inject BookScansService BookScansService @inject NavigationManager NavigationManager @inject IWebHostEnvironment Host @inject IJSRuntime JSRuntime @@ -49,7 +51,6 @@ @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")] -
+ | + @L["Extracting Exif information..."] + | ++ @if(_extractExif == true) + { + @L["OK!"] + } + else if(_extractExif == false) + { + @L["Error!"] + } + | +|
| + @L["Moving file to proper place..."] + | ++ @if(_moveFile == true) + { + @L["OK!"] + } + else if(_moveFile == false) + { + @L["Error!"] + } + | +
+ @if(_moveFile == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG with an HD resolution (thumbnail)..."] + | ++ @if(_convertJpegHdTh == true) + { + @L["OK!"] + } + else if(_convertJpegHdTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertJpegHdTh == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG with a 1440p resolution (thumbnail)..."] + | ++ @if(_convertJpeg1440Th == true) + { + @L["OK!"] + } + else if(_convertJpeg1440Th == false) + { + @L["Error!"] + } + | +
+ @if(_convertJpeg1440Th == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG with a 4K resolution (thumbnail)..."] + | ++ @if(_convertJpeg4kTh == true) + { + @L["OK!"] + } + else if(_convertJpeg4kTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertJpeg4kTh == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG with an HD resolution..."] + | ++ @if(_convertJpegHd == true) + { + @L["OK!"] + } + else if(_convertJpegHd == false) + { + @L["Error!"] + } + | +
+ @if(_convertJpegHd == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG with a 1440p resolution..."] + | ++ @if(_convertJpeg1440 == true) + { + @L["OK!"] + } + else if(_convertJpeg1440 == false) + { + @L["Error!"] + } + | +
+ @if(_convertJpeg1440 == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG with a 4K resolution..."] + | ++ @if(_convertJpeg4k == true) + { + @L["OK!"] + } + else if(_convertJpeg4k == false) + { + @L["Error!"] + } + | +
+ @if(_convertJpeg4k == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG2000 with an HD resolution (thumbnail)..."] + | ++ @if(_convertJp2kHdTh == true) + { + @L["OK!"] + } + else if(_convertJp2kHdTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertJp2kHdTh == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG2000 with a 1440p resolution (thumbnail)..."] + | ++ @if(_convertJp2k1440Th == true) + { + @L["OK!"] + } + else if(_convertJp2k1440Th == false) + { + @L["Error!"] + } + | +
+ @if(_convertJp2k1440Th == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG2000 with a 4K resolution (thumbnail)..."] + | ++ @if(_convertJp2k4kTh == true) + { + @L["OK!"] + } + else if(_convertJp2k4kTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertJp2k4kTh == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG2000 with an HD resolution..."] + | ++ @if(_convertJp2kHd == true) + { + @L["OK!"] + } + else if(_convertJp2kHd == false) + { + @L["Error!"] + } + | +
+ @if(_convertJp2kHd == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG2000 with a 1440p resolution..."] + | ++ @if(_convertJp2k1440 == true) + { + @L["OK!"] + } + else if(_convertJp2k1440 == false) + { + @L["Error!"] + } + | +
+ @if(_convertJp2k1440 == true)
+ {
+
+ |
+
| + @L["Converting photo to JPEG2000 with a 4K resolution..."] + | ++ @if(_convertJp2k4k == true) + { + @L["OK!"] + } + else if(_convertJp2k4k == false) + { + @L["Error!"] + } + | +
+ @if(_convertJp2k4k == true)
+ {
+
+ |
+
| + @L["Converting photo to WebP with an HD resolution (thumbnail)..."] + | ++ @if(_convertWebpHdTh == true) + { + @L["OK!"] + } + else if(_convertWebpHdTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertWebpHdTh == true)
+ {
+
+ |
+
| + @L["Converting photo to WebP with a 1440p resolution (thumbnail)..."] + | ++ @if(_convertWebp1440Th == true) + { + @L["OK!"] + } + else if(_convertWebp1440Th == false) + { + @L["Error!"] + } + | +
+ @if(_convertWebp1440Th == true)
+ {
+
+ |
+
| + @L["Converting photo to WebP with a 4K resolution (thumbnail)..."] + | ++ @if(_convertWebp4kTh == true) + { + @L["OK!"] + } + else if(_convertWebp4kTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertWebp4kTh == true)
+ {
+
+ |
+
| + @L["Converting photo to WebP with an HD resolution..."] + | ++ @if(_convertWebpHd == true) + { + @L["OK!"] + } + else if(_convertWebpHd == false) + { + @L["Error!"] + } + | +
+ @if(_convertWebpHd == true)
+ {
+
+ |
+
| + @L["Converting photo to WebP with a 1440p resolution..."] + | ++ @if(_convertWebp1440 == true) + { + @L["OK!"] + } + else if(_convertWebp1440 == false) + { + @L["Error!"] + } + | +
+ @if(_convertWebp1440 == true)
+ {
+
+ |
+
| + @L["Converting photo to WebP with a 4K resolution..."] + | ++ @if(_convertWebp4k == true) + { + @L["OK!"] + } + else if(_convertWebp4k == false) + { + @L["Error!"] + } + | +
+ @if(_convertWebp4k == true)
+ {
+
+ |
+
| + @L["Converting photo to HEIF with an HD resolution (thumbnail)..."] + | ++ @if(_convertHeifHdTh == true) + { + @L["OK!"] + } + else if(_convertHeifHdTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertHeifHdTh == true)
+ {
+
+ |
+
| + @L["Converting photo to HEIF with a 1440p resolution (thumbnail)..."] + | ++ @if(_convertHeif1440Th == true) + { + @L["OK!"] + } + else if(_convertHeif1440Th == false) + { + @L["Error!"] + } + | +
+ @if(_convertHeif1440Th == true)
+ {
+
+ |
+
| + @L["Converting photo to HEIF with a 4K resolution (thumbnail)..."] + | ++ @if(_convertHeif4kTh == true) + { + @L["OK!"] + } + else if(_convertHeif4kTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertHeif4kTh == true)
+ {
+
+ |
+
| + @L["Converting photo to HEIF with an HD resolution..."] + | ++ @if(_convertHeifHd == true) + { + @L["OK!"] + } + else if(_convertHeifHd == false) + { + @L["Error!"] + } + | +
+ @if(_convertHeifHd == true)
+ {
+
+ |
+
| + @L["Converting photo to HEIF with a 1440p resolution..."] + | ++ @if(_convertHeif1440 == true) + { + @L["OK!"] + } + else if(_convertHeif1440 == false) + { + @L["Error!"] + } + | +
+ @if(_convertHeif1440 == true)
+ {
+
+ |
+
| + @L["Converting photo to HEIF with a 4K resolution..."] + | ++ @if(_convertHeif4k == true) + { + @L["OK!"] + } + else if(_convertHeif4k == false) + { + @L["Error!"] + } + | +
+ @if(_convertHeif4k == true)
+ {
+
+ |
+
| + @L["Converting photo to AV1F with an HD resolution (thumbnail)..."] + | ++ @if(_convertAvifHdTh == true) + { + @L["OK!"] + } + else if(_convertAvifHdTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertAvifHdTh == true)
+ {
+
+ |
+
| + @L["Converting photo to AV1F with a 1440p resolution (thumbnail)..."] + | ++ @if(_convertAvif1440Th == true) + { + @L["OK!"] + } + else if(_convertAvif1440Th == false) + { + @L["Error!"] + } + | +
+ @if(_convertAvif1440Th == true)
+ {
+
+ |
+
| + @L["Converting photo to AV1F with a 4K resolution (thumbnail)..."] + | ++ @if(_convertAvif4kTh == true) + { + @L["OK!"] + } + else if(_convertAvif4kTh == false) + { + @L["Error!"] + } + | +
+ @if(_convertAvif4kTh == true)
+ {
+
+ |
+
| + @L["Converting photo to AV1F with an HD resolution..."] + | ++ @if(_convertAvifHd == true) + { + @L["OK!"] + } + else if(_convertAvifHd == false) + { + @L["Error!"] + } + | +
+ @if(_convertAvifHd == true)
+ {
+
+ |
+
| + @L["Converting photo to AV1F with a 1440p resolution..."] + | ++ @if(_convertAvif1440 == true) + { + @L["OK!"] + } + else if(_convertAvif1440 == false) + { + @L["Error!"] + } + | +
+ @if(_convertAvif1440 == true)
+ {
+
+ |
+
| + @L["Converting photo to AV1F with a 4K resolution..."] + | ++ @if(_convertAvif4k == true) + { + @L["OK!"] + } + else if(_convertAvif4k == false) + { + @L["Error!"] + } + | +
+ @if(_convertAvif4k == true)
+ {
+
+ |
+
| + @L["Adding photo to database..."] + | ++ @if(_addToDatabase == true) + { + @L["OK!"] + } + else if(_addToDatabase == false) + { + @L["Error!"] + } + | ++ | +