Skip to content

Create a recompress library to embedding in other sources#76

Open
pope wants to merge 13 commits into
danielgtaylor:masterfrom
pope:lib-recompress
Open

Create a recompress library to embedding in other sources#76
pope wants to merge 13 commits into
danielgtaylor:masterfrom
pope:lib-recompress

Conversation

@pope

@pope pope commented Jan 11, 2018

Copy link
Copy Markdown

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

pope commented Jan 17, 2018

Copy link
Copy Markdown
Author

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

pope commented Feb 8, 2018

Copy link
Copy Markdown
Author

Ping. Any thoughts on this?

@pope

pope commented Mar 14, 2018

Copy link
Copy Markdown
Author

Re-ping :)

@pope

pope commented Mar 19, 2018

Copy link
Copy Markdown
Author

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