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

300dpi ->96dpi #178

Open
Gerogelee opened this issue Sep 14, 2024 · 1 comment
Open

300dpi ->96dpi #178

Gerogelee opened this issue Sep 14, 2024 · 1 comment

Comments

@Gerogelee
Copy link

During the process of converting JPG, all the original 300dpi resolution files were converted to 96dpi. How can I keep the 300dpi unchanged?

@tjko
Copy link
Owner

tjko commented Sep 15, 2024

I don't think DPI information is part of the JPEG image. So it likely comes from some marker.

jpegoptim normally displays markers found in the image when its run, so if you run it again (for the optimized JPG image), you should see which markers got removed (don't appear anymore). That should point to which marker contains this information. Then you could use one of the --keep-xxxx options to tell jpegoptim not to remove the marker that contains DPI information..

For example, if its the Exif marker, then specifying option --keep-exif should work.

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

2 participants