Code Monkey home page Code Monkey logo

Comments (4)

enebo avatar enebo commented on June 12, 2024

Is this specifically JPEG w/ CMYK? I think I have some code I can adapt to support this, but I want to make sure I understand what format of image we are talking about first. The thing I will first try is to convert CMYK raster to RGB raster. This seems like it may be a little lossy? stackoverflow had a much more involved answer on this but it involved getting stuff from Adobe.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799903

from image_voodoo.

warmwater avatar warmwater commented on June 12, 2024

Hello enebo

yes i was handling JPEG files with CMYK format. I goggled stackoverflow, it seems like Java has some issue with CMYK support on JPEG files.

http://stackoverflow.com/questions/2408613/problem-reading-jpeg-image-using-imageio-readfile-file

from image_voodoo.

enebo avatar enebo commented on June 12, 2024

yeah. I believe I can support this in spite Java's lack of support. The werid bit is it looks like I need to add three different conversion mechanisms depending on specifc type of non-RGB JPEG.

from image_voodoo.

RaVbaker avatar RaVbaker commented on June 12, 2024

Ok, so this is the error that I get for CMYK JPEGs:

$ image_voodoo -d ../5053a01l.jpg
IOError: Unsupported Image Type
    load at org/jruby/RubyKernel.java:1081
  (root) at /Users/user/.rvm/gems/jruby-1.7.12@project/bin/image_voodoo:23
    eval at org/jruby/RubyKernel.java:1101
  (root) at /Users/user/.rvm/gems/jruby-1.7.12@project/bin/jruby_executable_hooks:15 

And I found a .jar which supports CMYK images decoding - http://www.randelshofer.ch/blog/2011/08/reading-cmyk-jpeg-images-with-java-imageio/ . I will prepare experimental version of code for it.

from image_voodoo.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.