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

Create a recompress library to embedding in other sources #76

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

pope
Copy link

@pope pope commented Jan 11, 2018

This pull request splits out the recompression logic in jpeg-recompress.c into its own source file.

The reason I want to do this is I'm interested in building a Go app that will recompress JPEG files in-place and in parallel. I have a prototype of that working, but don't worry, that's not in this request. I know I could use jpeg-archive or just do a child execution of jpeg-recompress, but I wanted one deliverable binary.

In addition to extracting the library, I did the following:

  • Added *.exe to .gitignore.
  • Added .editorconfig file to ensure consistent use of spaces/tabs.
  • Updated Makefile to account to 64 bit builds of MozJPEG on Linux
  • Updated readFile signature to take a const char * to avoid unnecessary casting.

Testing

I've tested on 64bit Linux and Windows 10.

@pope
Copy link
Author

pope commented Jan 17, 2018

BTW, the broken build is with just the GCC part and had an error message of "An error occurred while generating the build script.". So I think the build is OK. I'm not sure how to re-run the CI build again to be sure.

@pope
Copy link
Author

pope commented Feb 8, 2018

Ping. Any thoughts on this?

@pope
Copy link
Author

pope commented Mar 14, 2018

Re-ping :)

@pope
Copy link
Author

pope commented Mar 19, 2018

FYI - this branch now includes #85 .

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

Successfully merging this pull request may close these issues.

2 participants