Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Could not transform because the source rectan

2009-09-17
2013-05-01
  • barlickgarlick
    barlickgarlick
    2009-09-17

    just installed csx 1.4.2 and i keep getting this error message :"Could not transform because the source rectangle is empty"
    i see that others have had this but there doesn't seem to be a solution posted. can you help? thank you. here is my log:

        2009-09-17T14:04:18 - Begin Processing
    2009-09-17T14:04:18 - _version: v1.4.2
    _revision: $Revision: 1.123 $
    _appName: Adobe Photoshop
    _appVersion: 9.0.0
    _os: Macintosh OS 10.5.4
    imageSource: Folder
    folder: /Users/babakghazi/Desktop/a life 4 magazines/HH/letters/a
    recurse: false
    spanFolders: false
    background: White
    templateFile: CSXTemplate-Default.psd
    docUnits: Cmtr
    docWidth: 86.36
    docHeight: 58.42
    resolution: 300
    resUnits: PpIn
    mode: RGB
    colorProfile: Default
    marginsEnabled: true
    leftMargin: 0
    rightMargin: 0
    topMargin: 0
    bottomMargin: 0
    alternateMargins: false
    acrossFirst: true
    bestFit: false
    rotate: CW
    autoFill: false
    valign: Top
    halign: Center
    rowCount: 4
    columnCount: 8
    useAutoSpacing: false
    spacingUnits: px
    vertical: 5
    horizontal: 5
    thumbStyle: None
    squareCell: false
    caption: true
    captionFilename: false
    captionFormat: %f.%e
    noExtensions: false
    font: ArialMT
    fontSize: 12
    fontColor: Black
    captionStyle: None
    overlayCaption: false
    capAlignment: Center
    capVAlignment: Bottom
    keepOpen: false
    saveSheet: true
    outputFolder: /Users/babakghazi
    flatten: true
    flattenCells: true
    nextPage: true
    nextFile: true
    _pageStart: 1
    _pagePad: 2
    _outputStart: 1
    _outputPad: 4
    outputPrefix: sheet_
    fileNameFormat: sheet-#
    outputFormat: jpg
    fileSaveType: jpg
    accumulateKeywords: true
    enableTextSubstitution: true
    autospaceFactor: 1
    hiperfMode: 1
    hp2submode: thumbnail
    hp3submode: PreviewImage
    exiftool: exiftool
    dateFormat: %Y-%m-%d
    gpsFormat: %d° %d' %.2f"
    metadataSubstitution: true
    forceRecording: true
    alphaLayerPinRegister: false
    splitCSXLayerOnFlatten: false
    xpSort: false
    embedSmartObjects: false
    postProcessAction:
    fixMaskPhantomPixels: true
    tabbed: true
    watermarkMode: false
    bridgeEnabled: true
    uiX: 100
    uiY: 100
    uiConfirmBridgeForMetadata: uiModeOnly
    _formatPanel: true
    _fileNamingFormat: true
    autoscaleCaptions: true
    logEnabled: true
    lastPanel: Settings
    Message: Settings for CSX
    noUI: false
    _saveDocumentType: SaveDocumentType.JPEG
    jpgQuality: 10
    jpgEmbedColorProfile: false
    jpgFormat: Standard
    jpgConvertToSRGB: true
    _saveOpts:
    toString:
    typename: ContactSheetConfig
    rationalize:
    toDescriptor:
    fromDescriptor:

    2009-09-17T14:04:18 - Rationalizing options
    2009-09-17T14:04:18 - Options:
    _version: v1.4.2
    _revision: $Revision: 1.123 $
    _appName: Adobe Photoshop
    _appVersion: 9.0.0
    _os: Macintosh OS 10.5.4
    imageSource: Folder
    folder: ~/Desktop/a%20life%204%20magazines/HH/letters/a
    recurse: false
    spanFolders: false
    background: White
    templateFile: /Applications/Adobe%20Photoshop%20CS2/Presets/Scripts/csx/templates/CSXTemplate-Default.psd
    docUnits: Cmtr
    docWidth: 10200
    docHeight: 6900
    resolution: 300
    resUnits: PpIn
    mode: NewDocumentMode.RGB
    colorProfile: Default
    marginsEnabled: true
    leftMargin: 0
    rightMargin: 0
    topMargin: 0
    bottomMargin: 0
    alternateMargins: false
    acrossFirst: true
    bestFit: false
    rotate: CW
    autoFill: false
    valign: Top
    halign: Center
    rowCount: 4
    columnCount: 8
    useAutoSpacing: false
    spacingUnits: px
    vertical: 5
    horizontal: 5
    thumbStyle: None
    squareCell: false
    caption: true
    captionFilename: false
    captionFormat: %f.%e
    noExtensions: false
    font: ArialMT
    fontSize: 12
    fontColor: Black
    captionStyle: None
    overlayCaption: false
    capAlignment: Center
    capVAlignment: Bottom
    keepOpen: false
    saveSheet: true
    outputFolder: ~
    flatten: true
    flattenCells: true
    nextPage: true
    nextFile: true
    _pageStart: 1
    _pagePad: 2
    _outputStart: 1
    _outputPad: 4
    outputPrefix: sheet_
    fileNameFormat: sheet-#
    outputFormat: jpg
    fileSaveType: jpg
    accumulateKeywords: true
    enableTextSubstitution: true
    autospaceFactor: 1
    hiperfMode: 1
    hp2submode: thumbnail
    hp3submode: PreviewImage
    exiftool: exiftool
    dateFormat: %Y-%m-%d
    gpsFormat: %d° %d' %.2f"
    metadataSubstitution: true
    forceRecording: true
    alphaLayerPinRegister: false
    splitCSXLayerOnFlatten: false
    xpSort: false
    embedSmartObjects: false
    postProcessAction:
    fixMaskPhantomPixels: true
    tabbed: true
    watermarkMode: 0
    bridgeEnabled: true
    uiX: 100
    uiY: 100
    uiConfirmBridgeForMetadata: uiModeOnly
    _formatPanel: true
    _fileNamingFormat: true
    autoscaleCaptions: true
    logEnabled: true
    lastPanel: Settings
    Message: Settings for CSX
    noUI: false
    _saveDocumentType: SaveDocumentType.JPEG
    jpgQuality: 10
    jpgEmbedColorProfile: false
    jpgFormat: FormatOptions.STANDARDBASELINE
    jpgConvertToSRGB: true
    _saveOpts:
    _colorProfileName: undefined
    loadMetadataFromBridge: false
    _width: 86.36
    _height: 58.42
    frameWidth: 10200
    frameHeight: 6900
    fontSizePX: 50
    toString:
    typename: ContactSheetConfig
    rationalize:
    toDescriptor:
    fromDescriptor:

    2009-09-17T14:04:18 - Creating sheet 1 with files:
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/10.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/11.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/12.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/13.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/14.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/15.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/16.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/17.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/18.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/19.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1a.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaaaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaaaaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaaaaaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaaaaaaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/1aaaaaaaaa.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/20.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/21.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/22.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/23.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/24.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/25.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/26.jpg
    ~/Desktop/a%20life%204%20magazines/HH/letters/a/27.jpg
    2009-09-17T14:04:19 - Processing: /Users/babakghazi/Desktop/a life 4 magazines/HH/letters/a/10.jpg
    2009-09-17T14:04:19 - Inserting image 10.jpg at 5,5,1270,1667.5
    2009-09-17T14:04:20 -
    ==============Exception==============
       Message: Error: General Photoshop error occurred.
    - Could not transform because the source rectangle is empty.
       File: /Applications/Adobe Photoshop CS2/Presets/Scripts/CSX-1_4_2.jsx
       Line: 22802
       Error Name: Error
       Error Number: 9001
       Line: (22793)        if (e.number == 8007) {      // User cancelled
       Line: (22794)          try {
       Line: (22795)            layer.resize(100, 100);
       Line: (22796)          } catch (e) {
       Line: (22797)            if (e.number != 8007) {      // User cancelled
       Line: (22798)              Error.runtimeError(9001, e.toString());
       Line: (22799)            }
       Line: (22800)          }
       Line: (22801)        } else {
       Line: (22802) >>       Error.runtimeError(9001, e.toString());
       Line: (22803)        }
       Line: (22804)      }
       Line: (22805)   
       Line: (22806)      if (!csOpts.embedSmartObjects) {
       Line: (22807)        _rasterize(doc, layer);
       Line: (22808)      }
       Line: (22809)   
       Line: (22810)      var lname = layer.name;
       Line: (22811)   
       Line: (22812)      var lbnds = Stdlib.getLayerBounds(doc, layer);

    main()
    _main()
    runProcess(ContactSheetConfig)
    process(ContactSheetConfig,undefined)
    process(ContactSheetConfig)
    handleError(Error: Error: General Photoshop error occurred. - Could not transform because the source rectangle is empty.,"Error in processing: ")
    logException(Error: Error: General Photoshop error occurred. - Could not transform because the source rectangle is empty.)
    exceptionMessage(Error: Error: General Photoshop error occurred. - Could not transform because the source rectangle is empty.)

    ==============End Exception==============

    2009-09-17T14:04:39 - CSX Shutting down.

     
  • xbytor
    xbytor
    2009-09-17

    Does it always fail at the same image (/Users/babakghazi/Desktop/a life 4 magazines/HH/letters/a/10.jpg)?

    The error implies that PS had a problem placing the image as a smart object and thinks that it has no content. When it tries to resize the layer, it fails because there is nothing to transform. This could be happening because either the document is actually empty (or corrupted) or if the PS Smart Object system is having problems for some other reason.

    As a work-around, try changing the 'hiperfMode' setting on the Advanced panel to 'Basic' and let me know if that works any better.

     
  • barlickgarlick
    barlickgarlick
    2009-09-17

    I CHANGED 'HIPERFMODE' SETTING TO BASIC AS YOU SAID AND NOW IT WORKS PERFECTLY.
    THANK YOU FOR YOU HELP AND THANK YOU FOR THE SCRIPT.