sighook / pixload

Image Payload Creating/Injecting tools
Do What The F*ck You Want To Public License
1.19k stars 237 forks source link

Add pixel-size/image-size control [in progress] #7

Open sk3lk0 opened 4 years ago

sk3lk0 commented 4 years ago

can you add function for change number of pixels? can you add function for change image size?

sighook commented 4 years ago

can you add function for change number of pixels?

Seems like there is no problem to make that on some image formats. Here is the code example: https://github.com/chinarulezzz/pixload/blob/master/gif.pl#L64

It's a "good first issue" for the jpg.pl and png.pl improvement.

The problem appears when we want to specify the pixel size for the "polyglot" images (bmp/gif), where comment symbols /* overwrite pixel information field. A know how to reduce pixel-size, but your proposition needs some research.

can you add function for change image size?

That's non-trivial because of "polyglot" images mentioned above, and payload length that affects image size.

I think that with the addition of pixel-size/payload control we can indirectly control image size. So far in the case of jpg/png. Polyglot images (as i mentioned above) needs some research.

sk3lk0 commented 4 years ago

thanks.

sighook commented 4 years ago

@sk3lk0 reopened the issue 'cause I can improve when will have time.

sighook commented 2 years ago

The pixel-size control currently is implemented in