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

Old-style JPEG compression support is not configured. #15

Closed
atesz17 opened this issue Sep 19, 2016 · 7 comments
Closed

Old-style JPEG compression support is not configured. #15

atesz17 opened this issue Sep 19, 2016 · 7 comments

Comments

@atesz17
Copy link

atesz17 commented Sep 19, 2016

Hi!

I'd like to open tiff files using your library, however I face the following error message. Could you tell me how I can configure your library to use this old-style JPEG compression?

Thanks in advance

@seikichi
Copy link
Owner

Hi @atesz17,

Sorry, this library does not support JPEG-based compressed TIFF files (
I failed to link a JPEG library ... ;-p)

@atesz17
Copy link
Author

atesz17 commented Sep 19, 2016

Okay, thanks for the answer :)

Do you have any tips on dealing with JPEG-based compressed tiff files maybe?

@aabdelsamad
Copy link

Hi Seiichi.
Could you please tell me the problems that you faced when linking a JPEG library. I will could also try to do the linking ?
Perhaps me and @atesz17 can both contribute this part.

@seikichi
Copy link
Owner

seikichi commented Oct 3, 2016

@aabdelsamad @atesz17

Sorry for the too late response.

To be honest, I don't remember well what was the problem. Sorry...
I've tried to link libjpeg library as with zlib library in build.sh, but failed (I can't remember what problem had occured).

I think that by using the latest libjpeg and emscripten, it might be different results ...

@Tetedeiench
Copy link

Hello,

I had the same issue and could make a working version of the build.sh script linked against the latest libJPEG. I could successfully load JPEG-encoded TIFF files using it.

I sent the build script to seikichi by email, and i'm putting it here.

It isn't 100% working : the automatic build of the libjpeg library fails for some reason i haven't been able to find.

Until then, just run the script, and if it fails at building the jpeg library, run "emmake make clean", then the emconfigure / emmake lines manually, they'll work. Next, Comment those two lines in the script, and restart - you'll get through.

I included the output i had in the zip file if you want to try it out.

Keep in mind i learned about emscripten yesterday, and that you should thoroughly test this script out before using it.

tiff.jpeg.zip

@seikichi
Copy link
Owner

seikichi commented Oct 31, 2016

Thanks @Tetedeiench !!!!! 🙇 🙇 (cc: @aabdelsamad @atesz17 )

Thanks to your scripts, I could successfully build LibTIFF with libjpeg.
I updated demo pages with new tiff.js (demo1, demo2).

I'll update this library on this weekend (working branch is here). Thank you!

@Tetedeiench
Copy link

Tetedeiench commented Oct 31, 2016

I just did the compiling of libjpeg, you're the one to thank for the project as a whole... Thank you friend !

I'm just happy my work can be of use to others !

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

4 participants