{"action":"created","issue":{"url":"https://api.github.com/repos/medusa-project/cantaloupe/issues/49","repository_url":"https://api.github.com/repos/medusa-project/cantaloupe","labels_url":"https://api.github.com/repos/medusa-project/cantaloupe/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/medusa-project/cantaloupe/issues/49/comments","events_url":"https://api.github.com/repos/medusa-project/cantaloupe/issues/49/events","html_url":"https://github.com/medusa-project/cantaloupe/issues/49","id":182114443,"number":49,"title":"ProcessorException: Illegal band size for 16 bit TIFF images","user":{"login":"imoutsatsos","id":3408226,"avatar_url":"https://avatars.githubusercontent.com/u/3408226?v=3","gravatar_id":"","url":"https://api.github.com/users/imoutsatsos","html_url":"https://github.com/imoutsatsos","followers_url":"https://api.github.com/users/imoutsatsos/followers","following_url":"https://api.github.com/users/imoutsatsos/following{/other_user}","gists_url":"https://api.github.com/users/imoutsatsos/gists{/gist_id}","starred_url":"https://api.github.com/users/imoutsatsos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imoutsatsos/subscriptions","organizations_url":"https://api.github.com/users/imoutsatsos/orgs","repos_url":"https://api.github.com/users/imoutsatsos/repos","events_url":"https://api.github.com/users/imoutsatsos/events{/privacy}","received_events_url":"https://api.github.com/users/imoutsatsos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-10T21:00:26Z","updated_at":"2016-10-12T21:11:33Z","closed_at":null,"body":"Working with 16 bit gray scale TIFF scientific images, I get an `ProcessorException: Illegal band size: should be 0 < size <= 8`\r\n\r\nAttached is an example that can be used for testing here:\r\n[AF41.zip](https://github.com/medusa-project/cantaloupe/files/520422/AF41.zip)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3408226/19250926/cfa45852-8f0a-11e6-83d5-04ca67e4973d.png)\r\n\r\n\r\nThe Error Trace\r\n16:41:04.114 [qtp1349277854-12] INFO  e.i.l.c.resource.SourceImageWrangler - FileResolver -> FileProcessor connection between FilesystemReso lver and Java2dProcessor\r\n16:41:04.114 [qtp1349277854-12] INFO  e.i.l.c.resolver.FilesystemResolver - Resolved /VB00045122_1/AF41.tif to D:\\DEVTOOLS\\Jenkins\\userContent\\pictures\\VB00045122_1\\AF41.tif\r\n16:41:04.130 [qtp1349277854-12] INFO  e.i.l.c.p.imageio.TiffImageReader - createReader(): using it.geosolutions.imageioimpl.plugins.tiff.TIF FImageReader\r\n16:41:04.130 [qtp1349277854-12] DEBUG e.i.l.c.resource.AbstractResource - Read info of /VB00045122_1/AF41.tif in 0 msec\r\n16:41:04.130 [qtp1349277854-12] DEBUG e.i.l.c.resource.AbstractResource - isAuthorized(): delegate script is disabled; allowing.\r\n16:41:04.145 [qtp1349277854-12] DEBUG e.i.l.c.resource.AbstractResource - addNonEndpointOperations(): redactions are disabled; skipping.\r\n16:41:04.145 [qtp1349277854-12] DEBUG e.i.l.c.resource.AbstractResource - addNonEndpointOperations(): watermarking is disabled; skipping.\r\n16:41:04.145 [qtp1349277854-12] DEBUG e.i.l.c.resource.AbstractResource - Read info of /VB00045122_1/AF41.tif in 0 msec\r\n16:41:04.145 [qtp1349277854-12] DEBUG e.i.l.c.p.i.AbstractImageReader - tileAwareRead(): acquiring region 0,0/1024x1024 from 1024x1024 image\r\n\r\n16:41:04.176 [qtp1349277854-12] DEBUG e.i.l.c.p.i.AbstractImageReader - readSmallestUsableSubimage(): using a 1024x1024 source image (0x red uction factor)\r\n16:41:04.192 [qtp1349277854-12] ERROR org.restlet.Component.Server - An exception occurred writing the response entity\r\njava.io.IOException: edu.illinois.library.cantaloupe.processor.ProcessorException: Illegal band size: should be 0 < size <= 8\r\n        at edu.illinois.library.cantaloupe.resource.ImageRepresentation.doWrite(ImageRepresentation.java:139)\r\n        at edu.illinois.library.cantaloupe.resource.ImageRepresentation.write(ImageRepresentation.java:90)\r\n        at org.restlet.engine.adapter.ServerCall.writeResponseBody(ServerCall.java:513)\r\n        at org.restlet.engine.adapter.ServerCall.sendResponse(ServerCall.java:457)\r\n        at org.restlet.ext.servlet.internal.ServletCall.sendResponse(ServletCall.java:421)\r\n        at org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:187)\r\n        at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:144)\r\n        at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1117)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\n        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:837)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n        at org.eclipse.jetty.server.Server.handle(Server.java:524)\r\n        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)\r\n        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)\r\n        at java.lang.Thread.run(Unknown Source)\r\nCaused by: edu.illinois.library.cantaloupe.processor.ProcessorException: Illegal band size: should be 0 < size <= 8\r\n        at edu.illinois.library.cantaloupe.processor.Java2dProcessor.process(Java2dProcessor.java:222)\r\n        at edu.illinois.library.cantaloupe.resource.ImageRepresentation.doWrite(ImageRepresentation.java:132)\r\n        ... 31 common frames omitted\r\nCaused by: javax.imageio.IIOException: Illegal band size: should be 0 < size <= 8\r\n        at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(Unknown Source)\r\n        at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(Unknown Source)\r\n        at edu.illinois.library.cantaloupe.processor.imageio.JpegImageWriter.write(JpegImageWriter.java:134)\r\n        at edu.illinois.library.cantaloupe.processor.imageio.ImageWriter.write(ImageWriter.java:59)\r\n        at edu.illinois.library.cantaloupe.processor.Java2dProcessor.process(Java2dProcessor.java:220)\r\n        ... 32 common frames omitted\r\n"},"comment":{"url":"https://api.github.com/repos/medusa-project/cantaloupe/issues/comments/253340590","html_url":"https://github.com/medusa-project/cantaloupe/issues/49#issuecomment-253340590","issue_url":"https://api.github.com/repos/medusa-project/cantaloupe/issues/49","id":253340590,"user":{"login":"adolski","id":6854505,"avatar_url":"https://avatars.githubusercontent.com/u/6854505?v=3","gravatar_id":"","url":"https://api.github.com/users/adolski","html_url":"https://github.com/adolski","followers_url":"https://api.github.com/users/adolski/followers","following_url":"https://api.github.com/users/adolski/following{/other_user}","gists_url":"https://api.github.com/users/adolski/gists{/gist_id}","starred_url":"https://api.github.com/users/adolski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adolski/subscriptions","organizations_url":"https://api.github.com/users/adolski/orgs","repos_url":"https://api.github.com/users/adolski/repos","events_url":"https://api.github.com/users/adolski/events{/privacy}","received_events_url":"https://api.github.com/users/adolski/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T21:11:33Z","updated_at":"2016-10-12T21:11:33Z","body":"Thank you for helping out with the Windows testing. ;)\r\n\r\nImageMagickProcessor is written against ImageMagick 6.x. Apparently the \"magick\" command in 7 replaces \"convert\" and \"identify\" from 6.x. Just to be sure, during the ImageMagick 7 install, you need to make sure the \"Install legacy utilities (e.g. convert)\" checkbox is checked.\r\n\r\nAside from that, I did find a bug affecting paths on Windows. I've pushed a commit that ought to fix it, and now I am able to view your TIFF file using ImageMagickProcessor with ImageMagick 7.0.3 in Windows, and my `ImageMagickProcessor.path_to_binaries` key set just like yours.\r\n"}}
{"actor":{"display_login":"adolski"}}