Giter Club home page Giter Club logo

Comments (20)

manuels avatar manuels commented on July 21, 2024

Yes, imagemagick is working fine. Checkout the ./demo folder to see how to use it

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

Ok, I've already tried it and several errors comes out :
unixtoolbox-js-errors

Does it came from my computer (chrome) ?

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

I found the bug: I didn't update the submodule to the latest version.
You can try again, it should work now.

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

Ok, thanks for reply so quickly !

Works for jpg/png but I was unable to convert a G4 tif file image with unix-toolbox.
The same image goes ok in command line (convert "g4.tif" "g4.jpg").

unixtoolbox-js-errors

The test file : http://www.fileformat.info/format/tiff/sample/ff5798fb1a324c099af642690d161877/download

When you compile ImageMagick, did you add some exclusion ?

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

Yes, I did not include all image format libraries. However, I included tiff. So it's strange that this does not work.
What's the mime type of your tif file? is G4 tif different than the regular tif format?

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

Oh, G4 tif means group 4 tiff (Raw CCITT Group4) according to identify -list format.

Probably I did not include this format library...

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

Ok. The mime-type is "image/tiff" given "file --mime-type g4.tif" command line.
This is a regular type for register tiff file (fax).

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

Can you run convert -identify g4.tif (on your computer and in the browser) and post the output?

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

It give me this line :
g4.tif TIFF 2464x3248 2464x3248+0+0 1-bit Bilevel Gray 57.3KB 0.050u 0:00.049

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

^^Is that the output for both or did you just try it in the console?

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

Can you publish this image anywhere so I can try it myself?

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

I used this image example : http://www.fileformat.info/format/tiff/sample/ff5798fb1a324c099af642690d161877/download

Now, i'll just try in the console.

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

I'm not sure if the file is valid. Even my native imagemagick (debian 6.7.7-10 2013-09-01 Q16) tells me
convert.im6: no images defined 'g4.tif' @ error/convert.c/ConvertImageCommand/3044.

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

I think this image is valid (from file format.info). This command line (convert -identify "g4.tif" "g4.jpg") work on my computer (mac osx).

What is yout ImageMagick version ?

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

It's 6.7.7-10 2013-09-01 Q16 and yours?

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

It's 6.8.0-7 2013-09-19.
I don't know if there is so much difference between those version.

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

Got it: I did not use the additional 'g4.jpg' parameter. So it also works with my native version.
But I did not figure out which delegate is responsible for GROUP4 images.

from unix-toolbox.js.

alexandremottet avatar alexandremottet commented on July 21, 2024

The js version of "convert -identify .." gives :
Magick: no decode delegate for this image format `/g4.tif' @ error/constitute.c/ReadImage/550.

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

I think I got it: probably CCITT support is not included in libtiff. Right now I don't have my laptop (I lost the power supply and I'm waiting for the new one). As soon as I can use my laptop again, I can check whether this really is the issue and fix it.

from unix-toolbox.js.

manuels avatar manuels commented on July 21, 2024

Hmm, I don't get it!
Line 8 in tif_config.h clearly states that CCITT Group 3 and 4 support should be included!

from unix-toolbox.js.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.