Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Req: Random resize / shift #12

Open
torridgristle opened this issue Aug 21, 2023 · 0 comments
Open

Req: Random resize / shift #12

torridgristle opened this issue Aug 21, 2023 · 0 comments

Comments

@torridgristle
Copy link

Current issue with resaving the JPEGs is that the content of the images stays in the same 8x8 blocks and are compressed again in approximately the same way.

To solve this, pad the image at the top and left sides by random values between 0 and 8 pixels to shift the image content into different 8x8 blocks. Then save the JPEG and crop out the padding. Could pad all edges and use a solid color to make it bleed into the image, or pad it with a reflection of the image.

A little random resizing can also break up the image between resaves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant