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

opj_compress gives Unknown input file format error for .tiff extension #950

Open
bitsgalore opened this issue Jun 13, 2017 · 5 comments
Open

Comments

@bitsgalore
Copy link

I'm using the following command:

opj_compress -i balloon_eciRGB.tiff -o balloon_eciRGB_opj.jp2

Result:

[ERROR] Unknown input file format: balloon_eciRGB.tiff
        Known file formats are *.pnm, *.pgm, *.ppm, *.pgx, *png, *.bmp, *.tif, *.raw or *.tga

So apparently opj_compress only recognises files with a tif extension as TIFF, but not the (common) tiff extension. Would be helpful if this was added as an alias.

@Jamaika1
Copy link
Contributor

Jamaika1 commented Jun 17, 2017

Use this:
OpenJPEG don't compile with latest GCC 8.0.0. In file bio.c is error.
Codecs you can download with http://forum.doom9.org/showthread.php?p=1809807#post1809807
950c46d
276bf5d

@rouault
Copy link
Collaborator

rouault commented Jun 17, 2017

@Jamaika1 Please don't use this ticket for a unrelated issue with the original issue. If you get a compile error, please file a new ticket and put the compilation error messages instead of the file dump (not sure why you put the sources). For the record I tried the latest gcc 8.0 snapshot (it is still a development version by the way), and it compiles fine.

@Jamaika1
Copy link
Contributor

Jamaika1 commented Jun 17, 2017

I'm sorry if the thread was cluttered. I know that the creators usually don't answer so simple questions. I'm answer in advance because I hear two answers: use linux with gcc or windows with visual studio.
I had a problem with gcc 8.0.0 in windows:
bio.c:167:1: error: wrong argument: "unsigned-integer-overflow"
{
^
bio.c:178:1: error: wrong argument: "unsigned-integer-overflow"
{
^

Perhaps this is a bug with gcc 8.0.0, so don't assume ticket. Only I erased the lines currently.

@rouault
Copy link
Collaborator

rouault commented Jun 17, 2017

@Jamaika1 I believe your issue should be fixed with #955 I've just merged into master

@Jamaika1
Copy link
Contributor

Thanks

Jamaika1 added a commit to Jamaika1/openjpeg that referenced this issue Jun 18, 2017
Unknown input file format error for .tiff extension  uclouvain#950
Jamaika1 added a commit to Jamaika1/openjpeg that referenced this issue Jun 18, 2017
Unknown input file format error for .tiff extension  uclouvain#950
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

3 participants