Why my pdf is to big? Typst export WebP images to PNG

Hi community. I have a PDF with 180 MB ( :astonished:) and my pdf reader opens the document very slow. My document has 19 images, all webp. But when compile typst converts all images to PNG (And the image now is more big, 310 KB to 13 MB).

What is the process for compile a light pdf file? And What recommendations can you give me for insert images in typst documents?

1 Like

Hi. How did you check that images are converted to PNG?

Usually having images in JPEG just works, they should be embedded as is. Might even take less space when embedded. Pretty sure you can convert them with magick from an imagemagick package.

2 Likes

Hi. How did you check that images are converted to PNG?

When I open my pdf and save the images the final file is a png. But I think is a specs of my pdf reader.

Well I can reduce the size of pdf file with solution in this post

My problem now is the performance. I work with this command:

typs wacth file.typ

But the pdf is slow and big

Any suggestion?