Filesize Problem

I am using a .tiff image for LSB based steganography. The method works fie but the problem is that even if I embed a 2 byte message in a 43.2 KB image, when I write back the altered image matrix to a new file using imwrite(), the size of the new file gets abruptly increased to 673KB. Can you please help me out on this?

2 Comments

If you write back the file without any change, what size shows up?
Jan
Jan on 20 Jun 2012
Which parameters do you use for IMWRITE?

Answers (1)

Image Analyst
Image Analyst on 1 Jul 2012

0 votes

What application created the TIFF file? There are different "flavors" of TIFF files and MATLAB probably doesn't use all the same tags as your input image. It could very well use different tags, which would give rise to a different file size.

This question is closed.

Asked:

on 20 Jun 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!