prothan
Posts: 4
Joined: Sun Jan 03, 2016 8:02 am

Minimize jpeg size from raspistill

Wed Oct 12, 2016 5:46 am

I have noticed that jpeg images produced from raspistill are larger than jpeg data from the start marker and end marker. Can anybody explain what this data is and how to remove?

Thanks

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7889
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Minimize jpeg size from raspistill

Wed Oct 12, 2016 6:33 am

Which specific markers are you looking at?
Raspistill by default includes EXIF headers and a thumbnail. Disable the thumbnail by adding "-thumb none" to the commandline, and "-exif none" for the EXIF. And don't add the "-raw" option or you'll get a big block of the raw Bayer data appended to the JPEG data.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Camera board”