php - GD imagejpeg() compression? -
i'm working on project edit pixels of jpg in php using gd library. very crucial , key project output php retains pixel values set (cough-steganography-cough).
this first time i've attempted image manipulation in php. i've had no problems before in java implementations, foolish not investigate gd's jpeg
compression quality before pursuing further.
it turns out after effort, code not function way supposed to. pretty sure not code (tested encode , decode functions on edited image resources , worked).
my questions are:
the problem can see
imagejpeg()
's compression. right?are there libraries provide compression need?(retain pixel values changed)
the jpeg file format not suitable steganography if steganography pixel pixel.
jpeg uses image compression - maximum quality - destroy information on bit level on each pixel. jpeg type of compression (lossy compression) made human eye/brain retain image not bits of image in file .
you need use image format capable retain pixels - wrote well. such format more bmp rle compression or tiff image format zip or rle compression. that's called lossless data compression.
Comments
Post a Comment