-
Notifications
You must be signed in to change notification settings - Fork 82
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
Saving to TIFF - FileIO tries to save with OMETIFF #160
Comments
Oh shoot. I don't have access to a computer for the next couple of days to
fix this, but I'll do it first thing Monday. Why doesn't FileIO fall back
to Imagemagick automatically since OMETIFF saver is missing?
On Fri, Nov 24, 2017, 05:14 Tim Holy ***@***.***> wrote:
CC @tlnagy <https://github.com/tlnagy>. I messed up in merging #147
<#147> by not noticing that it
only supports loading, not saving. Probably need to use add_loader and
add_saver explicitly, not the short form of add_format; see the README.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#160 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlaL4UH-8iXiXf2ohixawVDAQWybk-kks5s5sFIgaJpZM4Qo7kJ>
.
--
Tamas Nagy
Graduate Student, Bioinformatics
Weiner Lab
University of California, San Francisco
http://tamasnagy.com
|
This actually is harder than I originally thought because currently there is no way to supply a function to |
What happens when the regular tiff reader is passed an OME TIFF file? If it errors, couldn't you add If that's not possible, then life is harder. When saving the only way to detect the format is through the filename, but julia> splitext("test.ome.tif")
("test.ome", ".tif") yields the regular TIFF extension. I see three potential solutions:
|
Thanks for the clarification. A regular TIFF reader can read a OME-TIFF file and vice versa (this was done on purpose). The only difference is the extension name and the presence of extra metadata in OME-TIFFs. I chose option 3 in #166 for now, but I'll open a feature request for option 1 to keep track of this feature request. |
Oh, and to answer
It's because Given that they are, in fact, a single format, we probably want to move towards a FileIO design that respects that. We might want a single format, The main issue is that FileIO's architecture might have to change a bit, so that detection-functions can winnow the list of available packages. |
The
save
function for tiff images tries to default to OMETIFF which does not have a saver defined:Gives the following error:
I've got ImageMagick installed.
Edit:
Found a workaround by saving via:
The text was updated successfully, but these errors were encountered: