Am 27.09.2013 um 09:57 schrieb Sergio Tamborini <[email protected]>:

> Hello!
> Is there a way to determinate automatically if the jpg that I open is in RGB 
> or CMYK?


  dim j as new JPEGImporterMBS
  
  j.File = SpecialFolder.Desktop.Child("cmyk.jpg")
  
  if j.InitJPEG then
    
    Select case j.ColorSpace
    case j.ColorSpaceCMYK, j.ColorSpaceYCCK
      MsgBox "CMYK"
    case j.ColorSpaceRGB, j.ColorSpaceYCbCr
      MsgBox "RGB"
    case j.ColorSpaceGrayScale
      MsgBox "Gray"
    else
      MsgBox "unknown? "+str(j.ColorSpace)
    end Select
    
    j.FinishJPEG
  end if
  
If you request a picture with ModePicture you can get one with latest 13.4 
plugins even for CMYK.
(but not color matched, just a preview)

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to