Converter and direct BASE64 files

This commit is contained in:
2023-11-17 04:31:38 +01:00
parent 8269718126
commit c693c96100
6 changed files with 178 additions and 8 deletions
@@ -17,7 +17,7 @@ const PDFPage: FC = () => {
const [pageJump, setPageJump] = useState('1');
useEffect(() => {
load(`${path}/${entry.name}/${currentPage}.png`);
load(`${path}/${entry.name}/${currentPage}.bjpg`);
}, [currentPage]);
return (
@@ -77,7 +77,7 @@ const PDFPage: FC = () => {
</Backdrop>
) : (
<Box>
<img src={`data:image/png;base64,${file}`} width="100%" />
<img src={`data:image/jpg;base64,${file}`} width="100%" />
</Box>
)}
</Box>