syvaidya / openstego

OpenStego is a steganography application that provides two functionalities: a) Data Hiding: It can hide any data within an image file. b) Watermarking: Watermarking image files with an invisible signature. It can be used to detect unauthorized file copying.
https://www.openstego.com
GNU General Public License v2.0
1.16k stars 215 forks source link

Image quality decreased drastically #17

Closed SarenT closed 6 years ago

SarenT commented 7 years ago

Hi, I realized the output images of digital watermarking are much smaller than the input images with worse JPG quality. It would be great to preserve image quality. At least keeping JPG quality similar to input image.

Best, SarenT

syvaidya commented 6 years ago

You can control the output compression for JPG by modifying openstego.ini file in user's home directory.

SarenT commented 6 years ago

I don't have that ini file in my user's home directory or elsewhere. I looked into the source code and it appears to be that one should have been created. I copied the one from the repo, which is supposed to be a template (it only includes that variable). My openstego ignored the file. My installation was from Ubuntu repositories. I cloned the most recent version now from github and built the project. The recent version created larger jpg files but they were all corrupted.

SarenT commented 6 years ago

Forgot to tell that I changed the quality to 1.0.

syvaidya commented 6 years ago

The file should get created first time you run the program. Could you please search your whole file system to see if it is generated? Ideally, it should be under home directory of the user, but I have not tested it on Linux.