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

Offer to convert types if needed when saving #5

Open
ctrueden opened this issue May 17, 2014 · 0 comments
Open

Offer to convert types if needed when saving #5

ctrueden opened this issue May 17, 2014 · 0 comments

Comments

@ctrueden
Copy link
Member

Some image formats can only save to certain image types. When attempting to save an image which is not one of those types, an exception similar to the following occurs:

[ERROR] net.imglib2.io.ImgIOException: Pixel type not supported. Please convert your image to a supported type.
    at net.imglib2.io.ImgIOUtils.makeType(ImgIOUtils.java:227)
    at net.imglib2.io.ImgSaver.populateMeta(ImgSaver.java:631)
    at net.imglib2.io.ImgSaver.initializeWriter(ImgSaver.java:596)
    at net.imglib2.io.ImgSaver.saveImg(ImgSaver.java:184)
    at imagej.core.commands.io.SaveAsImage.run(SaveAsImage.java:141)

We should at minimum make this message nicer (display a dialog instead of an exception dump). But really, it would be nice to offer to convert to a supported output format rather than just failing. We might need to add some API to SCIFIO for this.

Migrated from Fiji bug #315 and OME ticket #5323. See also ImageJ Trac ticket #1704.

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

1 participant