Converter and direct BASE64 files
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user