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

web interface fails where command line works #242

Open
loicjaouen opened this issue Jun 18, 2018 · 4 comments
Open

web interface fails where command line works #242

loicjaouen opened this issue Jun 18, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@loicjaouen
Copy link
Collaborator

Some files are converted fine by sipi when called on the command line but make sipi crash when called on the web client (/make_thumbnail) with the error:

Sipi: Accepted connection from 172.18.0.4
Sipi: Kakadu-library: Kakadu Core Error:
Code-stream must start with an SOC marker!
terminate called after throwing an instance of 'int'

The file is on the shared folder lausanne/ro12_mo_f_pi_07_02_rom-r.tif

As sipi CLI accepts to convert it, we can start again from a PNG file (using the same docker instance that runs the web interface):

docker run --rm -ti -v /import/images:/images sipi-local /sipi/build/sipi -f /images/ro12_mo_f_pi_07_02_rom-r.tif /images/converted-cli.png

then /make_thumbnail crashes with the message:

libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
terminate called after throwing an instance of 'Exiv2::BasicError<char>'
  what():  This does not look like a TIFF image
@loicjaouen
Copy link
Collaborator Author

Sipi:

Sipi Source Git-Version: b5de9e5

@loicjaouen
Copy link
Collaborator Author

I see that you made many commits since, I update my code and run this again

@loicjaouen
Copy link
Collaborator Author

finally sticking to that version as it is the last one that builds.

@loicjaouen
Copy link
Collaborator Author

as curious as it gets, adding an invisible frame helped sipi to upload the pictures, but the preview is still shaky.

adding an invisible 1px frame:

magick convert in.tif -matte -bordercolor none -border 1 out.tif 

preview:

preview

@subotic subotic added this to the Backlog milestone Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants