-
Notifications
You must be signed in to change notification settings - Fork 32
Don't allow jpeg export of Big images #31
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
Don't allow jpeg export of Big images #31
Conversation
|
Bug: Error after try to execute Batch_image_export.py
|
|
The above error is independent of the image you are trying to run Batch_image_Export on. It happens on small images as well. It does not happen with other scripts. |
|
@pwalczysko Thanks - That's just a silly bug that I missed since I couldn't test it locally. Fixing... |
|
This works OK in general, but in particular two things seem confusing: |
|
Hmmm - We're getting a green tick now (instead of the error we were getting before) because we're checking / handling this case better, instead of getting an Exception. |
|
I'd vote on a red X. From the point of view of the API, this is likely a |
|
re.renderCompressed() doesn't throw API exception with Big Images (works OK on a 4k x 4k image). |
|
I was more saying that I'd consider the script to "throw" that exception. Of course, if you'd like us to push that deeper into one of the service methods we can look at that, too. |
|
The green tick: We are talking about Batch images export here. So please note that there might be a very good possibility of having a mixture of big and small images in your selection, big will be rejected, small will be processed. In this case the green tick makes perfect sense but you might never find out what happened with your big image jpeg which is missing, and which you have exported as well. But the main functionality works fine, so I would recommend to merge this. |
|
@joshmoore Maybe we need to chat about this, since I'm not quite understanding you on this. How is the client supposed to know if the script 'Failed' or 'Succeeded'? By parsing of the stderr? |
|
Happy to chat. Places to look:
All three of these would evaluate to |
|
RFE ticket added (at high priority) https://trac.openmicroscopy.org.uk/ome/ticket/11147 Merging. Thanks all. |
Don't allow jpeg export of Big images
|
Should this be rebased to dev_4_4? |
|
Would probably be a good idea. |
|
--rebased-to #45 |

From http://trac.openmicroscopy.org.uk/ome/ticket/10841
For Big images, if we try to run Batch_Image_Export with any format, we should return a "Not supported" message.
This is simply an extension of #30 to apply to ALL formats (not just OME-TIFF).
NB: haven't tested this locally because of issues with https://trac.openmicroscopy.org.uk/ome/ticket/10970
To test: