Remix.run Logo
quibono 6 hours ago

Nice, I’ll definitely check this out. You might want to look at optimising the PDF, it’s sitting at 40MB right now.

2DcAf 6 hours ago | parent [-]

Thanks! I think most of the weight comes from the PNG diagrams, but I don’t actually know: I’ll put it on my to-do list to investigate, maybe there are some easy wins here.

maxerickson 5 hours ago | parent | next [-]

The ~750 pngs are about 15 megabytes. The 77 photographic images are 22 megabytes.

Somewhat a death of 1000 cuts.

I used https://www.xpdfreader.com/pdfimages-man.html to extract them and take a look.

2DcAf 4 hours ago | parent [-]

Thanks for that. At first glance, it looks like that is a good place to be, regarding images. I will still investigate when I find time.

maxerickson 4 hours ago | parent [-]

Probably the main thing you could look at is what pixel density you want in your images.

For example, there's a 1 megabyte image of a tanker trailer that is displayed at about 1.5 x 3 inches, you could get rid of 3/4 of those pixels (going from ~400 ppi to ~200 ppi) and not really change the quality of the image for a casual reader.

2DcAf 4 hours ago | parent [-]

that’s a really good place to start, thank you!

freedomben 5 hours ago | parent | prev [-]

Claude was able to optimize the hell out of one of mine, might be worth a try