javl / InstaxBLE

MIT License
54 stars 6 forks source link

Transfered JPEG file size limit? #15

Open mortiy opened 7 months ago

mortiy commented 7 months ago

Hi,

I just wonder, what is the actual file size limit for the JPEG photo?

In the README you mention 65535 bytes (i.e. 65 KB) (which is pretty low for Wide size images), while in the optimizer code I do see max_size_kb=105 (i.e. 105 KB).

Where did this information about the limit come from?

I'm just about to buy an Instax Wide printer, but I'll be very disappointed if it really compresses the printed images that much.

javl commented 7 months ago

Where did this information about the limit come from? The original values in this script come from analyzing the Android app, which takes your image and resizes it to be <= 65KB. However, users have experimented with other sizes (like the 105KB you see in the code) and have been able to send larger files as well. Though I'm not sure if this only works for specific models or for all (it makes sense the Wide or Square printers would use larger images than the Mini) and what the actual size limit is. It might be worth trying some other values and see how the printer will respond.

The mismatch between the 65KB in the readme and 105KB in the code simply comes from me forgetting to update the readme after someone found out you could use the 105KB value as well ;)

I do have to say the actual print quality is... not amazing. But it is not horrible either. The images tend to look a little blurry in my opinion, but they're still nice for the little gimmicky objects they are.