Android Universal Image Loader Custom Image Decoder with CMYK support -
background
we have swapped uil library, seems fantastic. unfortunately have support cmyk images (against our will) , have attempted modify existing imagedecoder
called baseimagedecoder
.
the code can found here. http://pastebin.com/nqbsr0w3
we had existing asynctask http://pastebin.com/5aq6qrrd used imagemagick wrapper described in post (convert image byte[] cmyk rgb?). worked fine before in our setup.
the problem
the current decoder fails load cached image file system , results in decoding error. have looked through source code , believe using right functions. thought adding our level of decoding @ point in process ideal, image may have been resized , stored on file system.
file cachedimagefile = imageloader.getinstance().getdisccache().get(decodinginfo.getimageuri()); if (!cachedimagefile.exists()) { log.v("app", "file not exist"); return null; }
the above lines return file not exist.
the question
are incorrect process our cmyk images @ point, , if not why can't image cache on file system?
Comments
Post a Comment