CS5.5 to CS6 AI: Wrong Color value

I use illustrator CS5.5 at office and continue my work at home by CS6.
But the color value are all gone wrong with decimal value. eg: c0y0m0k85 becomes c0y0m0k84.39
Does anyone know how to fix it?

wonglo,
Are you sure you have the same Color Settings/Management?
One other thing that may specifically affect Pantone colours is the change of conversion values Pnatone > CMYK.

Similar Messages

  • Eyedropper in PS CS6 picking wrong color

    My eyedropper started picking the wrong color!  I ahve reset and reinstalled PS - and still have this problem.  No matter what color I click the eyedropper on, it picks a shade darker than what I want.  Anyone have any ideas?  Like I said, I am running PS CS6 on OS Mountain Lion.

    hanci wrote:
    I also have problems with the eyedropper in RGB mode. I have a blue background color and when selecting it with the eyedropper I get #244f69 when I'm in RGB mode. And if I use that color in CSS on a website, the color gets darger than the original color in Photoshop. But if I change to CMYK mode and use the eyedropper again, then i get this code on the same background #00516a. And with that code I get the color I want on the website.
    Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
    Am I doing something wrong?
    Apart from your Photoshop needing updated to at least 13.0.1, the problem may be that your RGB document, which you're sampling in Photoshop, does not have sRGB profile and/or your Web browser is not colour managed and/or your computer is not using a correctly calibrated monitor profile and/or something else.

  • Illustrator cs5 changes Kuler color values when importing, Help!

    I am using Illustrator cs5. I access the Kuler Color theme feature for color themes. I will select a them from the Kuler feature
    and then choose to add that theme to my swatch panel. I then check the individual colors in the color panel. Here is the
    problem: when illustrator brings in the Kuler colors to the Illustrator color panel it will change the values of that color which
    changes the actual color. For instance a bright green becomes a muted turquoise. This conclusion is not by my sight,
    because I have opened the specific color theme at the Kuler Web sight and obtained the CMYK values for those colors,
    and then gone back to the Illustrator color panel and compared then values there. The values are changed which creates
    a different color --- obviously. So how can I use the Kuler feature when illustrator changes the values on me which then
    changes the color? Help

    I dont know what my color settings are at this point.
    I download the Kuler color theme straight from the Kuler panel open on my desktop. I open
    the drop down menu options and choose: add this theme to your color swatches. The
    theme is moved over to the swatch panel while I am using Illustrator.
    I don't know what you mean by your last question.

  • DW CS5 displays image wrong color

    I have an image created in Photoshop CS5 which I am using as a header image in DW CS5. I have made sure the hex code for the clolor matches in both programs but DW shows the wrong color but when I view the page in Firefox or Safari the color displays correctly. I really can't understand why DW does not display the correct color since the color codes are the same as what is shown in Photoshop and displays correctly in Photoshop.
    Any help is appreciated.

    I guess its OK to reply to my own question! The problem is the jpg file. There is no problem when the image is saved as png file. All the browsers and DW display the color correctly now. I still would appreciate any comments that might shed some light on the differences between jpg and png that might cause something like this.
    Thanks

  • CS5 Samples Wrong Color

    I'm having issues with the eyedropper tool in Photoshop. I've found that after I add an adjustment layer, using the eyedropper tool on any given layer in the document will give me the wrong color. A color is sampled, but seems to be shifted in Hue/Saturation/Brightness from the original color on the layer. I've made sure that the tool is set to 'Point Sample' and 'Current Layer', but the issue persists until I restart Photoshop.
    I posted this question around two months ago, and have since followed advice and reformatted my Computer, upgraded the graphics driver, upgraded to Windows 7 from Vista, and installed the 12.0.1 Photoshop update. The error is exactly the same as before, leading me to believe that I can't be the only one experiencing this.
    Can anyone duplicate the issue on their setup? Any ideas on how to address it?
    Thanks very much.

    Have you tried turning off OpenGL? Sampling the wrong color only after a while would suggest it does this because it is not flushing a buffer or the card generally has a misconfiguration that prevents it from handling transparencies, so, if you will, after a while some "invisible pixel" obstructs the correct sampling region.
    Mylenium

  • Read color values for swatches in InDesign CS5, js

    Hi,
    I  need to read color values for  swatches. I got this in OMV and was hoping it would give me an array of the color values for all existing swatches, but I am only getting "Object color":
    mySwatches = myDoc.swatches[1].getElements();
    alert (mySwatches)
    Thank you for your help.
    Yulia

    Hi Yulia,
    Try this:
    var
        mD = app.activeDocument, // document
        mS = mD.swatches, // document swatches
        gS = 4, // swatch index
        mC = [mS[gS].name, mS[gS].colorValue, mS[gS].space]; // swatch properties
    alert(mC.join("\r"));
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • How can I get scripting access to color values in the indexed Color Table?

    Hey all,
    I'm relatively new to Photoshop scripting, but I've just finished a script that helps my fiance with some very tedious tasks related to textile design.
    The last issue that I'm having is that the image I start with is indexed and has a very specific Color Table pallete ( 2-12 colors max + black and white, so 14 max total, sometimes as few as 2 ). Part of my script, I create a number of color chips and fill them with black currently... What I'd like is to be able to get a count of the colors in the Color Table and put the actual color values as hex into an 1 dimension array, so that I fill those black chips I've made with the actual colors from the Color Table.
    ( I don't know if it makes a difference but I'm converting the image to RGB mode at some point in the script, and back to Indexed Exact ).
    Can anyone please help me do this? Needs to be compatible with CS5 and CS6 ideally.
    Thanks!!

    Cheers for that, your code works but what had thrown me was that the collections appear to be empty - so I hadn't actually tried retrieving one, I just assumed I was looking in the wrong place.
    So if I do this in my Immediate window:
     App.Current.Resources.Count
     0
    Yet when I request it, I get one:
     App.Current.Resources["TitleTextStyle"]
     {Windows.UI.Xaml.Style}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.Style}
         BasedOn: {Windows.UI.Xaml.Style}
         IsSealed: false
         Setters: {Windows.UI.Xaml.SetterBaseCollection}
         TargetType: {Name = "TextBlock" FullName = "Windows.UI.Xaml.Controls.TextBlock"}
    Looking at the resources object itself, I get similar apparently empty collections:
     App.Current.Resources
     {Windows.UI.Xaml.ResourceDictionary}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.ResourceDictionary}
         Count: 0
         IsReadOnly: false
         Keys: Count = 0
         MergedDictionaries: {Windows.UI.Xaml.DependencyObject}
         Source: null
         ThemeDictionaries: {Windows.UI.Xaml.ResourceDictionary}
         Values: Count = 0

  • Re: Can't open CS5.5 in CS6 (branched)

    (Branched this thread from Can't open CS5.5 in CS6)
    I have the same problem. I've been working with CS5.5 for 1 year. Know, I've upgrade to CS6 and I can't open my CS5.5 files.
    This files are mine (not of a partner), I've made it so I can't understand whats wrong. I can open some CS5.5 files.
    I think it's an Adobe problem.
    I'm gonna try to see what kind of fonts have my documents.

    It's very difficult to get useful error reports under Windows.
    Your report seems to suggest something to do with hyperlinks:
    Sig[3].Name=Nombre del módulo con erroresSig[3].Value=HYPERLINKS.RPLN
    But it is hard to say.
    If I try to uninstall and use the CS Cleaner tool?
    Go ahead. It will not hurt. I do not know if it will help. But it will do no harm.
    Can you export your CS5.5 file to IDML in CS5, and then open the IDML in CS6?
    Can you try to narrow the problem? You can try working on a copy of the file in CS5.5 and deleting/removing parts until you can determine what causes the crash in CS6. You mention hyperlinks and cross-references, so they may be a place to start.
    Can you share a file with us?

  • Ps CS5 e Ps CS6 in Mavericks: (Two monitor)

    Hello. Sorry for my bad English!!!
    This is my great problem: After installation of Maverick on my MacPro Early 2008, when i launch Photoshop (CS5 or CS6 version) in my secondary monitor don't appear the palette of the struments by my works, but is only on surface by primary monitor!!! ...and my image is on the deep. It's impossible to work on this mode!!!
    If i register the "Works Area" after reimposted palette of the tools ( Level, History, Color...ecc.ecc.) when i restart Photoshop ...the windows by second monitor is on the primary monitor!!!!
    What's appened???
    Tanckyou to all!!!
    Alfredo Manicardi - [email protected] - www.scattinaturali.com

    Tank
    Messaggio originale----
    Da: [email protected]
    Data: 14-nov-2013 0.24
    A: "Alfredo Manicardi"<[email protected]>
    Ogg: Ps CS5 e Ps CS6 in Mavericks: (Two monitor)
        Re: Ps CS5 e Ps CS6 in Mavericks: (Two monitor)
        created by bwl2010 in Photoshop General Discussion - View the full discussion
    I had the same problem and it was driving me nuts.  Thanks to conradchavez.com Blog.
    Multiple displays: If you put panels (including the Tools panel) on a secondary display and then switch applications, those panels may snap back to the primary display when you switch back. To avoid this, open System Preferences, click Mission Control, and turn off Displays Have Separate Spaces. Mavericks ships with that option on, so if you want to position Adobe application panels and windows on multiple displays you should turn off that option.
    You will have to log out before it works.  It worked for me.
    Tankyou very mutch!!!!
    Now is all perfectly funzionally!!!!
    Ri- Tankyou!!!
    Alfredo Manicardi
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5840183#5840183
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5840183#5840183
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5840183#5840183. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop General Discussion at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Color values shift from Illustrator to Photoshop

    Hi there:
    Hopefully someone has an answer for me (my apologies if this has been addressed before)?
    When  I open up a EPS file in Illustrator CS5, the blacks read !00% for RGB. When  exported as a JPG, Photoshop CS5 reads it as 0-0-0. So far so good. But  when copy and paste the same EPS into a Photoshop files, as a smart  object, the values change to 4-7-7. I've tried that with other colors,  and it seems the color values shift when using as a smart object. Any  ideas on why and how to remedy this?
    I will also post in the Photoshop forum as well...
    Thanks,
    Lisa

    So I also had someone else reply in the Photoshop forum about this. Apparently, I need to be using the Adobe RGB (1998) color space on both applications in order for the numbers to reflect the correct color values.
    Not sure why it wouldn't do so in other color spaces (I had mine initially set to sRGB on both apps), and I'll need to see if this runs into any issues on our end.
    If you have any more insight, I would love to hear it. But thanks for your help!
    Lisa

  • JavaScript: changes from CS5.5 to CS6

    Removed
    Classes
    FolioBindingDirectionOptions (enum)
    FolioOrientationOptions (enum)
    SmoothScrollingOptions (enum)
    SpaceUnitType (enum)
    VisibilityInPdf (enum)
    Properties
    Button.visibilityInPdf
    DocumentPreference.masterTextFrame
    DocumentPreset.masterTextFrame
    EPubExportPreference.marginUnit
    EPubExportPreference.spaceUnit
    EPubExportPreference.format
    EPubExportPreference.useTocStyle
    EPubExportPreference.cssExportOption
    EPubExportPreference.externalCSSPath
    HTMLExportPreference.leftMargin
    HTMLExportPreference.rightMargin
    HTMLExportPreference.topMargin
    HTMLExportPreference.bottomMargin
    HTMLExportPreference.marginUnit
    HTMLExportPreference.spaceUnit
    HTMLExportPreference.externalCSSPath
    HTMLExportPreference.linkToJavascript
    HTMLExportPreference.javascriptURL
    ObjectExportOption.customImageAlignment
    ObjectExportOption.spaceUnit
    PagesPanel.verticalView
    StyleSheetExportOption.STYLE_NAME_ONLY
    StyleSheetExportOption.EXTERNAL_CSS
    Methods
    Application.rasterizeDocumentPage()
    Application.exportMiniFolio()
    Application.exportFolioToPackage()
    Application.exportFolioToDirectory()
    Application.exportFolioToDirectoryPackage()
    Application.getAllOverlays()
    Application.createCustomMiniFolio()
    Application.areFilePathsEquivalent()
    Added
    Classes
    AutoSizingReferenceEnum (enum)
    AutoSizingTypeEnum (enum)
    CellStyleMapping
    CellStyleMappings
    CharStyleMapping
    CharStyleMappings
    CheckBox
    CheckBoxes
    ClearFormBehavior
    ClearFormBehaviors
    ComboBox
    ComboBoxes
    ContentPlacerObject
    CustomLayoutTypeEnum (enum)
    DimensionsConstraints (enum)
    EpubVersion (enum)
    FontLockingPreference
    GuideTypeOptions (enum)
    HtmlItem
    HtmlItems
    LayoutRuleOptions (enum)
    LinkedPageItemOption
    ListBox
    ListBoxes
    MapType (enum)
    PNGColorSpaceEnum (enum)
    PNGExportPreference
    PNGExportRangeEnum (enum)
    PNGQualityEnum (enum)
    PageViewOptions (enum)
    PaginationOption (enum)
    ParaStyleMapping
    ParaStyleMappings
    PreviewPagesOptions (enum)
    PrintFormBehavior
    PrintFormBehaviors
    RadioButton
    RadioButtons
    SignatureField
    SignatureFields
    SnapshotBlendingModes (enum)
    StaticAlignmentOptions (enum)
    SubmitFormBehavior
    SubmitFormBehaviors
    TableStyleMapping
    TableStyleMappings
    TextBox
    TextBoxes
    Properties
    AlignDistributeBounds.KEY_OBJECT
    Application.linkedPageItemOptions
    Application.pngExportPreferences
    Application.contentPlacer
    Application.fontLockingPreferences
    Application.paraStyleMappings
    Application.charStyleMappings
    Application.tableStyleMappings
    Application.cellStyleMappings
    Application.selectionKeyObject
    Button.linkedPageItemOptions
    Button.submitFormBehaviors
    Button.clearFormBehaviors
    Button.printFormBehaviors
    Button.printableInPdf
    Button.hiddenUntilTriggered
    Button.horizontalLayoutConstraints
    Button.verticalLayoutConstraints
    Cell.checkBoxes
    Cell.comboBoxes
    Cell.listBoxes
    Cell.radioButtons
    Cell.textBoxes
    Cell.signatureFields
    ChangeGrepPreference.paragraphKashidaWidth
    ChangeObjectPreference.autoSizingType
    ChangeObjectPreference.autoSizingReferencePoint
    ChangeObjectPreference.useMinimumHeightForAutoSizing
    ChangeObjectPreference.minimumHeightForAutoSizing
    ChangeObjectPreference.useMinimumWidthForAutoSizing
    ChangeObjectPreference.minimumWidthForAutoSizing
    ChangeObjectPreference.useNoLineBreaksForAutoSizing
    ChangeTextPreference.paragraphKashidaWidth
    Character.checkBoxes
    Character.comboBoxes
    Character.listBoxes
    Character.radioButtons
    Character.textBoxes
    Character.signatureFields
    Character.paragraphKashidaWidth
    CoordinateSpaces.PAGE_COORDINATES
    DiacriticPositionOptions.OPENTYPE_POSITION_FROM_BASELINE
    Document.linkedPageItemOptions
    Document.paraStyleMappings
    Document.charStyleMappings
    Document.tableStyleMappings
    Document.cellStyleMappings
    Document.checkBoxes
    Document.comboBoxes
    Document.listBoxes
    Document.radioButtons
    Document.textBoxes
    Document.signatureFields
    Document.selectionKeyObject
    DocumentIntentOptions.DPS_INTENT
    DocumentPreference.createPrimaryTextFrame
    DocumentPreset.createPrimaryTextFrame
    EPS.linkedPageItemOptions
    EPS.horizontalLayoutConstraints
    EPS.verticalLayoutConstraints
    EPSText.linkedPageItemOptions
    EPSText.horizontalLayoutConstraints
    EPSText.verticalLayoutConstraints
    EPubExportPreference.externalStyleSheets
    EPubExportPreference.javascripts
    EPubExportPreference.version
    FindChangeTransliterateCharacterTypes.WESTERN_ARABIC_DIGITS
    FindChangeTransliterateCharacterTypes.ARABIC_INDIC_DIGITS
    FindChangeTransliterateCharacterTypes.FARSI_DIGITS
    FindGrepPreference.paragraphKashidaWidth
    FindObjectPreference.autoSizingType
    FindObjectPreference.autoSizingReferencePoint
    FindObjectPreference.useMinimumHeightForAutoSizing
    FindObjectPreference.minimumHeightForAutoSizing
    FindObjectPreference.useMinimumWidthForAutoSizing
    FindObjectPreference.minimumWidthForAutoSizing
    FindObjectPreference.useNoLineBreaksForAutoSizing
    FindTextPreference.paragraphKashidaWidth
    FormField.linkedPageItemOptions
    FormField.horizontalLayoutConstraints
    FormField.verticalLayoutConstraints
    GeneralPreference.mainMonitorPpi
    GeneralPreference.greekVectorGraphicsOnDrag
    GeneralPreference.showConveyor
    GeneralPreference.createLinksOnContentPlace
    GeneralPreference.mapStylesOnContentPlace
    GeneralPreference.useCustomMonitorResolution
    GeneralPreference.customMonitorPpi
    GeneralPreference.previewPages
    Graphic.linkedPageItemOptions
    Graphic.horizontalLayoutConstraints
    Graphic.verticalLayoutConstraints
    GraphicLine.linkedPageItemOptions
    GraphicLine.htmlItems
    GraphicLine.checkBoxes
    GraphicLine.comboBoxes
    GraphicLine.listBoxes
    GraphicLine.radioButtons
    GraphicLine.textBoxes
    GraphicLine.signatureFields
    GraphicLine.horizontalLayoutConstraints
    GraphicLine.verticalLayoutConstraints
    Group.linkedPageItemOptions
    Group.checkBoxes
    Group.comboBoxes
    Group.listBoxes
    Group.radioButtons
    Group.textBoxes
    Group.signatureFields
    Group.horizontalLayoutConstraints
    Group.verticalLayoutConstraints
    Guide.guideType
    Guide.guideZone
    HTMLExportPreference.externalStyleSheets
    HTMLExportPreference.javascripts
    IMEPreference.useNativeDigits
    Image.linkedPageItemOptions
    Image.horizontalLayoutConstraints
    Image.verticalLayoutConstraints
    ImportedPage.linkedPageItemOptions
    ImportedPage.horizontalLayoutConstraints
    ImportedPage.verticalLayoutConstraints
    InsertionPoint.checkBoxes
    InsertionPoint.comboBoxes
    InsertionPoint.listBoxes
    InsertionPoint.radioButtons
    InsertionPoint.textBoxes
    InsertionPoint.signatureFields
    InsertionPoint.paragraphKashidaWidth
    InteractivePDFExportPreference.usePDFStructureForTabOrder
    LanguageAndRegion.INDIC
    Layer.checkBoxes
    Layer.comboBoxes
    Layer.listBoxes
    Layer.radioButtons
    Layer.textBoxes
    Layer.signatureFields
    LayoutWindow.selectionKeyObject
    Line.checkBoxes
    Line.comboBoxes
    Line.listBoxes
    Line.radioButtons
    Line.textBoxes
    Line.signatureFields
    Line.paragraphKashidaWidth
    LinkedStoryOption.applyStyleMappings
    MasterSpread.checkBoxes
    MasterSpread.comboBoxes
    MasterSpread.listBoxes
    MasterSpread.radioButtons
    MasterSpread.textBoxes
    MasterSpread.signatureFields
    MasterSpread.primaryTextFrame
    MediaItem.linkedPageItemOptions
    MediaItem.horizontalLayoutConstraints
    MediaItem.verticalLayoutConstraints
    Movie.linkedPageItemOptions
    Movie.horizontalLayoutConstraints
    Movie.verticalLayoutConstraints
    MultiStateObject.linkedPageItemOptions
    MultiStateObject.horizontalLayoutConstraints
    MultiStateObject.verticalLayoutConstraints
    ObjectExportOption.customLayout
    ObjectExportOption.customLayoutType
    ObjectStyle.enableTextFrameAutoSizingOptions
    Oval.linkedPageItemOptions
    Oval.htmlItems
    Oval.checkBoxes
    Oval.comboBoxes
    Oval.listBoxes
    Oval.radioButtons
    Oval.textBoxes
    Oval.signatureFields
    Oval.horizontalLayoutConstraints
    Oval.verticalLayoutConstraints
    PDF.linkedPageItemOptions
    PDF.horizontalLayoutConstraints
    PDF.verticalLayoutConstraints
    PDFColorSpace.GRAY
    PICT.linkedPageItemOptions
    PICT.horizontalLayoutConstraints
    PICT.verticalLayoutConstraints
    Page.appliedAlternateLayout
    Page.checkBoxes
    Page.comboBoxes
    Page.listBoxes
    Page.radioButtons
    Page.textBoxes
    Page.signatureFields
    Page.layoutRule
    Page.snapshotBlendingMode
    Page.optionalPage
    PageItem.linkedPageItemOptions
    PageItem.horizontalLayoutConstraints
    PageItem.verticalLayoutConstraints
    Paragraph.checkBoxes
    Paragraph.comboBoxes
    Paragraph.listBoxes
    Paragraph.radioButtons
    Paragraph.textBoxes
    Paragraph.signatureFields
    Paragraph.paragraphKashidaWidth
    ParagraphJustificationOptions.NASKH_TATWEEL_JUSTIFICATION
    ParagraphJustificationOptions.NASKH_KASHIDA_JUSTIFICATION
    ParagraphJustificationOptions.NASKH_TATWEEL_JUSTIFICATION_FRAC
    ParagraphJustificationOptions.NASKH_KASHIDA_JUSTIFICATION_FRAC
    ParagraphStyle.paragraphKashidaWidth
    PlaceGun.checkBoxes
    PlaceGun.comboBoxes
    PlaceGun.listBoxes
    PlaceGun.radioButtons
    PlaceGun.textBoxes
    PlaceGun.signatureFields
    Polygon.linkedPageItemOptions
    Polygon.htmlItems
    Polygon.checkBoxes
    Polygon.comboBoxes
    Polygon.listBoxes
    Polygon.radioButtons
    Polygon.textBoxes
    Polygon.signatureFields
    Polygon.horizontalLayoutConstraints
    Polygon.verticalLayoutConstraints
    Rectangle.linkedPageItemOptions
    Rectangle.htmlItems
    Rectangle.checkBoxes
    Rectangle.comboBoxes
    Rectangle.listBoxes
    Rectangle.radioButtons
    Rectangle.textBoxes
    Rectangle.signatureFields
    Rectangle.horizontalLayoutConstraints
    Rectangle.verticalLayoutConstraints
    Section.alternateLayoutLength
    Section.alternateLayout
    Section.pagination
    Section.paginationMaster
    SelectionOptions.SET_KEY
    Snippet.checkBoxes
    Snippet.comboBoxes
    Snippet.listBoxes
    Snippet.radioButtons
    Snippet.textBoxes
    Snippet.signatureFields
    Sound.linkedPageItemOptions
    Sound.horizontalLayoutConstraints
    Sound.verticalLayoutConstraints
    SplineItem.linkedPageItemOptions
    SplineItem.htmlItems
    SplineItem.checkBoxes
    SplineItem.comboBoxes
    SplineItem.listBoxes
    SplineItem.radioButtons
    SplineItem.textBoxes
    SplineItem.signatureFields
    SplineItem.horizontalLayoutConstraints
    SplineItem.verticalLayoutConstraints
    Spread.checkBoxes
    Spread.comboBoxes
    Spread.listBoxes
    Spread.radioButtons
    Spread.textBoxes
    Spread.signatureFields
    StateTypes.UP_ON
    StateTypes.ROLLOVER_ON
    StateTypes.DOWN_ON
    StateTypes.UP_OFF
    StateTypes.ROLLOVER_OFF
    StateTypes.DOWN_OFF
    StaticText.staticAlignment
    Story.paraStyleMappings
    Story.charStyleMappings
    Story.tableStyleMappings
    Story.cellStyleMappings
    Story.checkBoxes
    Story.comboBoxes
    Story.listBoxes
    Story.radioButtons
    Story.textBoxes
    Story.signatureFields
    Story.paragraphKashidaWidth
    StoryWindow.selectionKeyObject
    StyleExportTagMap.splitDocument
    Table.checkBoxes
    Table.comboBoxes
    Table.listBoxes
    Table.radioButtons
    Table.textBoxes
    Table.signatureFields
    TagTextExportCharacterSet.CENTRALEUROPEAN_ISO
    TagTextExportCharacterSet.CYRILLIC_ISO
    TagTextExportCharacterSet.GREEK_ISO
    TagTextExportCharacterSet.WINDOWS_ARABIC
    TagTextExportCharacterSet.WINDOWS_HEBREW
    Text.checkBoxes
    Text.comboBoxes
    Text.listBoxes
    Text.radioButtons
    Text.textBoxes
    Text.signatureFields
    Text.paragraphKashidaWidth
    TextColumn.checkBoxes
    TextColumn.comboBoxes
    TextColumn.listBoxes
    TextColumn.radioButtons
    TextColumn.textBoxes
    TextColumn.signatureFields
    TextColumn.paragraphKashidaWidth
    TextDefault.paragraphKashidaWidth
    TextFrame.objectExportOptions
    TextFrame.linkedPageItemOptions
    TextFrame.checkBoxes
    TextFrame.comboBoxes
    TextFrame.listBoxes
    TextFrame.radioButtons
    TextFrame.textBoxes
    TextFrame.signatureFields
    TextFrame.horizontalLayoutConstraints
    TextFrame.verticalLayoutConstraints
    TextFrameContents.PLACEHOLDER_TEXT_ARABIC
    TextFrameContents.PLACEHOLDER_TEXT_HEBREW
    TextFrameContents.PLACEHOLDER_TEXT_CYRILLIC
    TextFrameContents.PLACEHOLDER_TEXT_GREEK
    TextFramePreference.useFlexibleColumnWidth
    TextFramePreference.textColumnMaxWidth
    TextFramePreference.autoSizingType
    TextFramePreference.autoSizingReferencePoint
    TextFramePreference.useMinimumHeightForAutoSizing
    TextFramePreference.minimumHeightForAutoSizing
    TextFramePreference.useMinimumWidthForAutoSizing
    TextFramePreference.minimumWidthForAutoSizing
    TextFramePreference.useNoLineBreaksForAutoSizing
    TextImportCharacterSet.MACINTOSH_GREEK_SHARED_CAPS
    TextImportCharacterSet.MACINTOSH_ARABIC
    TextImportCharacterSet.MACINTOSH_HEBREW
    TextImportCharacterSet.WINDOWS_ARABIC
    TextImportCharacterSet.WINDOWS_HEBREW
    TextImportCharacterSet.ARABIC_ASMO
    TextImportCharacterSet.ARABIC_ASMO_TRANSPARENT
    TextPreference.quoteCharactersRotatedInVertical
    TextStyleRange.checkBoxes
    TextStyleRange.comboBoxes
    TextStyleRange.listBoxes
    TextStyleRange.radioButtons
    TextStyleRange.textBoxes
    TextStyleRange.signatureFields
    TextStyleRange.paragraphKashidaWidth
    WMF.linkedPageItemOptions
    WMF.horizontalLayoutConstraints
    WMF.verticalLayoutConstraints
    Window.selectionKeyObject
    Word.checkBoxes
    Word.comboBoxes
    Word.listBoxes
    Word.radioButtons
    Word.textBoxes
    Word.signatureFields
    Word.paragraphKashidaWidth
    XmlStory.paraStyleMappings
    XmlStory.charStyleMappings
    XmlStory.tableStyleMappings
    XmlStory.cellStyleMappings
    XmlStory.checkBoxes
    XmlStory.comboBoxes
    XmlStory.listBoxes
    XmlStory.radioButtons
    XmlStory.textBoxes
    XmlStory.signatureFields
    XmlStory.paragraphKashidaWidth
    Methods
    Button.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    Document.createAlternateLayout(spreadItems,name,width,height,createTextStyles,linkTextStor ies,layoutRule)
    Document.deleteAlternateLayout(name)
    EPS.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    EPSText.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    FormField.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])
    Graphic.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    GraphicLine.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptio ns])
    Group.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    Guide.transformValuesOf(in)
    Guide.resolve(location,in[,consideringRulerUnits])
    Image.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    ImportedPage.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOpti ons])
    Link.goToSource()
    MasterSpread.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,placePoint] [,destinationLayer][,showingOptions])
    MediaItem.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])
    Movie.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    MultiStateObject.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showing Options])
    Oval.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    PDF.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    PICT.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    Page.snapshotCurrentLayout()
    Page.deleteLayoutSnapshot()
    Page.deleteAllLayoutSnapshots()
    Page.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,placePoint][,destin ationLayer][,showingOptions])
    PageItem.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions] )
    Polygon.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    Rectangle.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])
    Sound.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    SplineItem.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOption s])
    Spread.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,placePoint][,dest inationLayer][,showingOptions])
    TextFrame.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])
    WMF.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])
    Changed methods
    Application.dumpFromMemoryMark(Array of from)
    Application.dumpBetweenMemoryMarks(Array of from,Array of to)
    Button.extractLabel(key)
    Document.align(alignDistributeItems,alignOption[,alignDistributeBounds][,reference])
    Document.distribute(alignDistributeItems,distributeOption[,alignDistributeBounds][,useDist ributeMeasurement][,absoluteDistributeMeasurement][,reference])
    EPS.extractLabel(key)
    EPSText.extractLabel(key)
    FormField.extractLabel(key)
    Graphic.extractLabel(key)
    GraphicLine.extractLabel(key)
    Group.extractLabel(key)
    Image.extractLabel(key)
    ImportedPage.extractLabel(key)
    MediaItem.extractLabel(key)
    Movie.extractLabel(key)
    MultiStateObject.extractLabel(key)
    Oval.extractLabel(key)
    PDF.extractLabel(key)
    PICT.extractLabel(key)
    PageItem.extractLabel(key)
    Polygon.extractLabel(key)
    Rectangle.extractLabel(key)
    Sound.extractLabel(key)
    SplineItem.extractLabel(key)
    TextFrame.extractLabel(key)
    WMF.extractLabel(key)

    .. created using this XML input ..
    <fileset>
              <file name="omv$indesign-7.5$7.5.xml" />
              <file name="omv$indesign-8.0$8.0.xml" />
    </fileset>
    .. and this XSLT ..
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:variable name="file1" select="document(/fileset/file[1]/@name, /)" />
    <xsl:variable name="file2" select="document(/fileset/file[2]/@name, /)" />
    <xsl:template match="/">
    <html><head><title>InDesign changes from CS5.5 to CS6</title><LINK rel="stylesheet" type="text/css" href="styles003.css" /></head><body>
    <h1>InDesign changes from CS5.5 to CS6</h1>
    <h2>Removed</h2>
    <h3>Classes</h3>
    <xsl:apply-templates select="$file1/dictionary/package" mode="c_removed" />
    <h3>Properties</h3>
    <xsl:apply-templates select="$file1/dictionary/package" mode="p_removed" />
    <h3>Methods</h3>
    <xsl:apply-templates select="$file1/dictionary/package" mode="m_removed" />
    <h2>Added</h2>
    <h3>Classes</h3>
    <xsl:apply-templates select="$file2/dictionary/package" mode="c_added" />
    <h3>Properties</h3>
    <xsl:apply-templates select="$file2/dictionary/package" mode="p_added" />
    <h3>Methods</h3>
    <xsl:apply-templates select="$file2/dictionary/package" mode="m_added" />
    <h2>Changed methods</h2>
    <xsl:apply-templates select="$file2/dictionary/package" mode="m_changed" />
    </body></html></xsl:template>
    <xsl:template match="package" mode="c_removed">
              <xsl:for-each select="classdef">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="not($file2/dictionary/package/classdef[@name=$this])">
                                  <p><xsl:value-of select="$this" /><xsl:if test="@enumeration"> (enum)</xsl:if></p>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    <xsl:template match="package" mode="c_added">
              <xsl:for-each select="classdef">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="not($file1/dictionary/package/classdef[@name=$this])">
                                  <p><xsl:value-of select="$this" /><xsl:if test="@enumeration"> (enum)</xsl:if></p>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    <xsl:template match="package" mode="p_removed">
              <xsl:for-each select="classdef">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="$file2/dictionary/package/classdef[@name=$this]">
                                  <xsl:for-each select="elements/property">
                                            <xsl:variable name="prop" select="@name" />
                                            <xsl:if test="not($file2/dictionary/package/classdef[@name=$this]/elements/property[@name=$prop])">
                                                      <p><xsl:value-of select="$this" />.<xsl:value-of select="$prop" /><xsl:if test="@enumeration"> (enum)</xsl:if></p>
                                            </xsl:if>
                                  </xsl:for-each>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    <xsl:template match="package" mode="p_added">
              <xsl:for-each select="classdef">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="$file1/dictionary/package/classdef[@name=$this]">
                                  <xsl:for-each select="elements/property">
                                            <xsl:variable name="prop" select="@name" />
                                            <xsl:if test="not($file1/dictionary/package/classdef[@name=$this]/elements/property[@name=$prop])">
                                                      <p><xsl:value-of select="$this" />.<xsl:value-of select="$prop" /><xsl:if test="@enumeration"> (enum)</xsl:if></p>
                                            </xsl:if>
                                  </xsl:for-each>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    <xsl:template match="package" mode="m_removed">
              <xsl:for-each select="classdef[@dynamic]">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="$file2/dictionary/package/classdef[@name=$this]">
                                  <xsl:for-each select="elements/method">
                                            <xsl:variable name="meth" select="@name" />
                                            <xsl:if test="not($file2/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth])">
                                                      <p><xsl:value-of select="$this" />.<xsl:value-of select="$meth" />()</p>
                                            </xsl:if>
                                  </xsl:for-each>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    <xsl:template match="package" mode="m_added">
              <xsl:for-each select="classdef[@dynamic]">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="$file1/dictionary/package/classdef[@name=$this]">
                                  <xsl:for-each select="elements/method">
                                            <xsl:variable name="meth" select="@name" />
                                            <xsl:if test="not($file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth])">
                                                      <p><xsl:value-of select="$this" />.<xsl:value-of select="$meth" />(<xsl:for-each select="parameters/parameter">
    <xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><xsl:value-of select="@name" /><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if>
    </xsl:for-each>)</p>
                                            </xsl:if>
                                  </xsl:for-each>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    <xsl:template match="package" mode="m_changed">
              <xsl:for-each select="classdef[@dynamic]">
                        <xsl:sort select="@name" />
                        <xsl:variable name="this" select="@name" />
                        <xsl:if test="$file1/dictionary/package/classdef[@name=$this]">
                                  <xsl:for-each select="elements/method">
                                            <xsl:variable name="meth" select="@name" />
                                            <xsl:if test="$file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]">
                                                      <xsl:if test="$file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters != parameters">
                                                                <p><xsl:value-of select="$this" />.<xsl:value-of select="$meth" />(
                                                                <xsl:for-each select="$file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter">
                                                                          <xsl:variable name="parm" select="@name" />
                                                                          <xsl:if test="not($file2/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm])">
                                                                                    <stkout><xsl:value-of select="$parm" /></stkout><xsl:text> </xsl:text>
                                                                                    <xsl:if test="count(../parameter) &gt; 1">,</xsl:if>
                                                                          </xsl:if>
                                                                </xsl:for-each>
                                                                <xsl:for-each select="parameters/parameter">
                                                                          <xsl:variable name="parm" select="@name" />
                                                                          <xsl:choose>
                                                                                    <xsl:when test="not($file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm])">
                                                                                              <b><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><xsl:value-of select="@name" /><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if></b>
                                                                                    </xsl:when>
                                                                                    <xsl:when test="datatype/array and not($file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm]/datatype/array)">
                                                                                              <xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><i>Array of </i><xsl:value-of select="@name" /><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if>
                                                                                    </xsl:when>
                                                                                    <xsl:when test="@optional and not($file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm][@optional])">
                                                                                              <b><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><i>Array of </i><xsl:value-of select="@name" /><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if></b>
                                                                                    </xsl:when>
                                                                                    <xsl:when test="not(@optional) and $file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm][@optional]">
                                                                                              <stkout><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><i>Array of </i><xsl:value-of select="@name" /><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if></stkout>
                                                                                    </xsl:when>
                                                                                    <xsl:when test="datatype/type != $file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm]/datatype/type">
                                                                                              <xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><stkout><xsl:value-of select="$file1/dictionary/package/classdef[@name=$this]/elements/method[@name=$meth]/parameters/parameter[@name=$parm]/datatype/type" /></stkout><xsl:text> </xsl:text><b><xsl:value-of select="@name" /></b><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if>
                                                                                    </xsl:when>
                                                                                    <xsl:otherwise>
                                                                                              <xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">[</xsl:if><xsl:if test="position() &gt; 1">,</xsl:if><xsl:value-of select="@name" /><xsl:if test="@optional='true' or datatype/value or contains(shortdesc, 'Optional')">]</xsl:if>
                                                                                    </xsl:otherwise>
                                                                          </xsl:choose>
                                                                </xsl:for-each>)</p>
                                                      </xsl:if>
                                            </xsl:if>
                                  </xsl:for-each>
                        </xsl:if>
              </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

  • Adobe Photoshop CS5 upgrade to CS6 issue

    Hi there,
    I have just upgraded my Photoshop CS5 to Photoshop CS6 but when I enter my serial number for my current version of Photoshop, I get an error message saying my serial number is incorrect.  Am I doing something wrong?  Appreciate any help at all.

    Wow, I hadn't realized Adobe was going to keep the upgrade offer from Photoshop CS5 12.x to CS6 13.0 open after Photoshop CC 14.0 was released.
    To add to what's been said in response to your question about the Student/Teacher offers...
    http://www.adobe.com/education/students.edu.html
    -Noel

  • ImageIO: scaling and then saving to JPEG yields wrong colors

    Hi,
    when saving a scaled image to JPEG the colors are wrong (not just inverted) when viewing the file in an external viewer (e.g. Windows Image Viewer or The GIMP). Here's the example code:
    public class Main {
         public static void main(String[] args) {
              if (args.length < 2) {
                   System.out.println("Usage: app [input] [output]");
                   return;
              try {
                   BufferedImage image = ImageIO.read (new File(args[0]));
                   AffineTransform xform = new AffineTransform();
                   xform.scale(0.5, 0.5);
                   AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_BILINEAR);
                   BufferedImage out = op.filter(image,null);
                   ImageIO.write(out, "jpg", new File(args[1]));
    /* The following ImageViewer is a JComponent displaying
    the buffered image - commented out for simplicity */
                   ImageViewer imageViewer = new ImageViewer();
                   imageViewer.setImage (ImageIO.read (new File(args[1])));
                   imageViewer.setVisible (true);
              catch (Exception ex) {
                   ex.printStackTrace();
    Observations:
    * viewing this JPEG in an external viewer displays the colors wrong, blue becomes reddish, skin color becomes brown, blue becomes greenish etc.
    * when I skip the transformation and simply write the input 'image' instead the colors look perfect in an external viewer!
    BufferedImage image = ImageIO.read (new File(args[0]));
    ImageIO.write (image, "jpg", new File(args[1]));
    * when I do the scale transformation but store as PNG instead the image looks perfect in external viewers!
    BufferedImage out = op.filter(image,null);
    ImageIO.write(out, "png", new File(args[1]));
    * viewing the scaled JPEG image with The GIMP produces "more intense" (but still wrong) colors than when viewing with the Windows Image Viewer - I suspect that the JPEG doesn't produce plain RGB values when decompressed (another color space used then sRGB? double instead of int values?)
    * Loading the saved image and display it in a JComponent shows the image fine:
    class ViewComponent extends JComponent
         private Image image;
         protected void paintComponent( Graphics g )
              if ( image != null )
    // image looks okay!
                   g.drawImage( image, 0, 0, this );
         public void setImage( BufferedImage newImage )
              image = newImage;
              if ( image != null )
                   repaint();
    * Note that I've tried several input image formats (PNG, JPEG) and made sure that they were stored as RGB (not CMYK or the like).
    * Someone else already mentioned that the RGB values as read from an JPG image are wrong, but no answer in this thread - might be connected with this problem: http://forum.java.sun.com/thread.jspa?forumID=20&threadID=612542
    * I tried the jdk1.5.0_01 and jdk1.5.0_04 on Windows XP.
    Any suggestions? Is this a bug in the ImageIO jpeg plugin? What am I doing wrong? Better try something like JAI or JIMI? I'd rather not...
    Thanks a lot! Oliver
    p.s. also posted to comp.lang.java.programmers today...

    Try using TYPE_NEAREST_NEIGHBOR
    rather than
    TYPE_BILINEARI was a bit quick with saying that this doesn't work - I had extended my example code which made it fail (see later), but here's a working version first (note: I use the identity transform only for simplicity and to show that it really doesn't matter whether I scale, rotate or shear)):
    // works, but only for TYPE_NEAREST_NEIGHBOR interpolation
    Image image = ImageIO.read (new File(args[0]));
    AffineTransform xform = new AffineTransform();
    AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage out = op.filter(image, null);
    ImageIO.write(out, "jpg", new File(args[1]));The problem: we restrict ourselves to nearest neighbor interpolation, which is especially visible when scaling up (or rotate, shear).
    Now when I change the following, it doesn't work anymore, the stored image has type=0 instead of 5 then (which obviously doens't work with external viewers):
    // doesn't work, since an extra alpha value is introduced, even
    // for TYPE_NEAREST_NEIGHBOR
    BufferedImage out = op.filter(image, op.createCompatibleDestImage(image, ColorModel.getRGBdefault()));Intuitively I would say that's exactly what I want, and RGB image with data type int (according to JavaDocs). That it has an alpha channel is a plus - or is it?
    I think this extra alpha value is the root of all evil: JPEG doesn't support alpha, but I guess ImageIO still mixes this alpha value somehow into the JPEG data stream - for ImageIO that's not a problem, the JPEG data is decompressed correctly (even though the alpha values have become meaningless then, haven't checked that), but other JPEG viewers can't manage this ARGB format.
    This also explains why writing to PNG worked, since PNG supports alpha channels.
    And obviously an AffineTransformOp silently changes the image format from RGB to ARGB, but only for TYPE_BILINEAR and TYPE_CUBIC, not for TYPE_NEAREST_NEIGHBOR! Even though I can imagine why this is done like this (it's more efficient to calculate with 32 bit ints than with 24 bit packed values, hence the extra alpha byte...) I would at least expect the JPEG writer to ignore this extra alpha value - at least with the default settings and unless otherwise told with extra parameters! Now my code gets unnecessary complicated.
    So how do I scale an image using bilinear (or even bicubic) interpolation, so that it get's displayed properly with external viewers? I found the following code working:
    // works, but I need an extra buffer and draw operation - UGLY
    // and UNNECESSARILY COMPLICATED (in my view)
    BufferedImage image = ImageIO.read (new File(args[0]));
    AffineTransform xform = new AffineTransform();
    AffineTransformOp op = new AffineTransformOp (xform, AffineTransformOp.TYPE_BILINEAR);
    BufferedImage out = op.filter(image, null);
    // create yet another buffer with the proper RGB pixel structure
    // (no alpha), draw transformed image 'out' into this buffer 'out2'          
    BufferedImage out2 = new BufferedImage (out.getWidth(), out.getHeight(),
                                                             BufferedImage.TYPE_INT_RGB);
    Graphics2D g = out2.createGraphics();
    g.drawRenderedImage(out, null);
    ImageIO.write(out2, "jpg", args[1]);This is already way more complicated than the initial code - left alone that I need to create an extra image buffer, just to get rid of the alpha channel and do an extra drawing.
    I've also tried to supply a BufferedImage as 2nd argument to the filter op to avoid the above:
    ICC_ColorSpace (iccColorSpace = new ICC_ColorSpace (ICC_Profile.getInstance(ColorSpace.CS_sRGB)
    BufferedImage out = op.filter(image, op.createCompatibleDestImage(image, new DirectColorModel (iccColorSpace), 24, 0xff0000, 0x00ff00, 0x0000ff, 0x000000, false, DataBuffer.TYPE_INT)));  But then the filter operation failed ("Unable to transform src image") and I was beaten by the sheer possibilities of color spaces, ICC profiles, so I quickly gave up... and hey, I "just" want to load, scale and save to JPG!
    The last option was getting a JPEG writer and its ImageWriteParam, trying to set the output image type:
    iwparam.setDestinationType(ImageTypeSpecifier.createFromBufferedImageType(BufferedImage.TYPE_INT_RGB));But again I failed, the resulting image type was still type=0 (and not 5). So I gave up, realising that the Java API is still overly complex and "too design-patterned" for simple tasks :(
    If anyone has still a good idea how to get rid of the alpha channel when writing to JPEG in a simple way (apart from creating an extra buffer as above, which works for me now...)... you're very welcome to enlighten me ;)
    Cheers, Oliver
    p.s. Jim, I will assign you the "DukeDollars", since your hint was somewhat correct :)

  • [AS CS5] Get document's default fill color

    Anyone know how to do this?
    What I am trying to do is manually select a color using the color picker, then the script redefines and existing swatch with the same color value.
    I tried:
    set myNewColor to fill color of page item default
    without success...

    I had tried that, but it didn't work either. I think that's because I was using the line in a tell myDocument block, not tell application. It still isn't working, though.
    Here is the script:
    tell application "Adobe InDesign CS5"
         set myDocument to active document
         set myNewColor to fill color of page item defaults
         set mySpace to space of myNewColor
         set myValue to color value of myNewColor
         tell myDocument
              tell color "Color1"
                   set space to mySpace
                   set color value to myValue
              end tell
         end tell
    end tell
    Here is the error:
    error "Adobe InDesign CS5 got an error: Can’t get space of swatch id 3." number -1728 from space of swatch id 3
    The default color is a color sampled from a photo, but the "fill color of page item defaults" is returning a swatch:
    tell application "Adobe InDesign CS5"
    get active document
    --> document id 7
    get fill color of page item defaults
    --> swatch id 3
    get space of swatch id 3
    --> error number -1708

  • Wrong color profile after export - what am I doing wrong?

    I'm a beginner in color management and color profiles and I have a problem with my exported files from AE CS6 (german version):
    In my project settings I've set the working space to "adobe RGB (1998)" which is the same like my footage (JPEG Image-Sequence).
    In my Output Module Settings I've set it also to the working space "adobe RGB (1998)".
    I' ve tried to export it as h.246 and AVI.
    And now the Problem: the exported clips are too bright and washed out. First I thought it is a problem with the Windows Media Player, but I imported the clips again to after effects and the showed Profile is now "HDTV (Rec. 709) Y'CbCr". This is the case with the h.246-clips. The AVI-Clips showed the profile "sRGB IEC61..." So the settings from the Output Module didn't seem to work.
    The washed-out-effect disappeared after I set everything to HDTV, but I don't think this is the right way to go..
    Thank you for any help

    Simple, really: You are using a) a wrong color space b) your system is not calibrated, but you have color management enabled and c) use formats that don't support color management. This is simply wrong from stem to stern, especially with regards to b) and c). Why would you even use Adobe RGB when video works on Rec 709 or even more generic sRGB? I think you do not even understand the point of CM on a fundamental level. you don't dictate the color space by your source files, you simply import them into your working color space - regardless of whatever it is set to. The color metrics engine will apply any corrections necessary based on the associated/ embedded profiles, which ultimately is the whole point. Conversely, enabling CM for output will require a format that actually uses those corrections, which comes down to only a handful. so to cut a long story short: Unless you are willing and technically able to establish a proper CM workflow simply leave it off and just use the default sRGB that AE ever has used.
    Mylenium

Maybe you are looking for