Automatically Slicing Large TIFF Files with Photoshop 5.1

I am trying to automatically slice a very large TIFF file (800 MB) into 28 equally-sized rectangles using Actions (it is a scanned image of 28 scientific slides and reducing the resolution is not an option). My goal is to start with the TIFF file and end up with a folder that contains 28 separate files. I'll do this on many such TIFF files, so it needs to be coded into an action.
So far I have an action that creates guides in a grid pattern and then converts the guides to 28 individual rectangular user slices that together cover the entire screen. Unfortunately the file is far too large  to use with the "Save for Web & Devices" tool and I also can't export to TIFF from that tool. So I made an action that individually selects each slice (using the slice select tool), copies it, creates a new file, pastes the image, saves it as a flattened, non-compressed TIFF into a new folder, then closes the file. When I try to run this I get the following error:
The command "Select" is not currently available
          -- Continue --       -- Stop --
If I press Continue the action is not carried out. If I press Stop and select the slice manually there is no problem (but then my action will not be fully automated). The image is in 8-bit RGB mode, and I've also tried converting the locked Background layer into a standard layer. I don't see any reason why the select command shouldn't be available! There is only one layer and there are user slices available for selection. I tried separating the slicing and select/import jobs into 2 different actions but it still didn't work.
Any help you can give me would be greatly appreciated! Thank you!
Photoshop CS 5.1 Extended, v. 12.1 x64 - I have installed the recent update
Windows 7 64-bit
6 GB RAM

This might do it...
It will save the individual files in a folder called filechop off the files path.
#target photoshop
function main(){
if(!documents.length) return;
var dlg=
"dialog{text:'Script Interface',bounds:[100,100,380,290],"+
"panel0:Panel{bounds:[10,10,270,180] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
"title:StaticText{bounds:[60,10,220,40] , text:'File Chop' ,properties:{scrolling:undefined,multiline:undefined}},"+
"panel1:Panel{bounds:[10,40,250,130] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
"statictext1:StaticText{bounds:[10,10,111,30] , text:'Accross' ,properties:{scrolling:undefined,multiline:undefined}},"+
"statictext2:StaticText{bounds:[140,10,230,27] , text:'Down' ,properties:{scrolling:undefined,multiline:undefined}},"+
"across:DropDownList{bounds:[10,30,100,50]},"+
"down:DropDownList{bounds:[140,30,230,50]},"+
"saveFiles:Checkbox{bounds:[10,60,230,80] , text:'Save and Close new files?'}},"+
"button0:Button{bounds:[10,140,110,160] , text:'Ok' },"+
"button1:Button{bounds:[150,140,250,160] , text:'Cancel' }}};"
var win = new Window(dlg,'File Chop');
if(version.substr(0,version.indexOf('.'))>9){
win.panel0.title.graphics.font = ScriptUI.newFont("Georgia","BOLD",20);
g = win.graphics;
var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [1.00, 1.00, 1.00, 1]);
g.backgroundColor = myBrush;
var myPen =g.newPen (g.PenType.SOLID_COLOR, [1.00, 0.00, 0.00, 1],lineWidth=1);
win.center();
  for(var i=1;i<31;i++){
   win.panel0.panel1.across.add ('item', i);    
   win.panel0.panel1.down.add ('item', i);    
win.panel0.panel1.across.selection=0;
win.panel0.panel1.down.selection=0;
var done = false;
    while (!done) {
      var x = win.show();
      if (x == 0 || x == 2) {
        win.canceled = true;
        done = true;
      } else if (x == 1) {
        done = true;
if(!documents.length)return;
var startRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
doc = app.activeDocument;
app.displayDialogs = DialogModes.NO;
doc.flatten();
var tilesAcross = parseInt(win.panel0.panel1.across.selection.index)+1;
var tilesDown =parseInt(win.panel0.panel1.down.selection.index)+1;
var tileWidth = parseInt(doc.width/tilesAcross);
var tileHeight = parseInt(doc.height/tilesDown);
var SaveFiles = win.panel0.panel1.saveFiles.value;
ProcessFiles(tilesDown,tilesAcross,tileWidth,tileHeight,SaveFiles);
app.preferences.rulerUnits = startRulerUnits;     
main();
function ProcessFiles(Down,Across,offsetX,offsetY,SaveFiles){
try{
var newName = activeDocument.name.match(/(.*)\.[^\.]+$/)[1];
}catch(e){var newName="UntitledChop"}
var Path='';
try{
Path =  activeDocument.path;
}catch(e){Path = "~/Desktop";}
if(SaveFiles){
Path = Folder(decodeURI(Path) +"/FileChop");
if(!Path.exists) Path.create();
TLX = 0; TLY = 0; TRX = offsetX; TRY = 0;
BRX = offsetX; BRY = offsetY; BLX = 0; BLY = offsetY;
for(var a = 0; a < Down; a++){
  for(var i = 0;i <Across; i++){
            var NewFileName = newName +"#"+a+"-"+i;
   app.activeDocument.duplicate (NewFileName, true);
    activeDocument.selection.select([[TLX,TLY],[TRX,TRY],[BRX,BRY],[BLX,BLY]], SelectionType.REPLACE, 0, false);
    executeAction( charIDToTypeID( "Crop" ), undefined, DialogModes.NO );
    app.activeDocument.selection.deselect();
if(SaveFiles){
var saveFile = File(decodeURI(Path+"/"+NewFileName+".jpg"));
SaveJPEG(saveFile, 10);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    activeDocument = documents[0];
TLX = offsetX * (i+1) ; TRX  = TLX + offsetX; BRX = TRX; BLX = TLX; 
TLX = 0; TLY = offsetY * (a +1); TRX = offsetX; TRY = offsetY * (a +1);
BRX = offsetX; BRY = TRY + offsetY; BLX = 0; BLY = (offsetY * (a +1)+offsetY);
if(SaveFiles){
Path.execute()
function SaveJPEG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality;
activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);

Similar Messages

  • Large tiff file in Photoshop CS6

    I have been working on a large tiff file in Photoshop CS 6 for several hours now and it has grown to over 3 GB.  I was able to save it and exit but when I tried to reopen it I got an error that said that the version of Photoshop that I was running would not recognize the file.  I downloaded CC2014 but it does not recognize it either.  Any suggestions?

    If Photoshop does not recognize the file as being in a known image format you may want to search for a file recovery program to see if what you have can be processed at all.
    https://www.google.com/search?num=100&newwindow=1&safe=off&rlz=1C1CHFX_enUS546US546&q=Tiff +Image+File+repair+software&oq…
    Make a copy of the bad file before trying to repair it.

  • 16 bits Tiff files with Photoshop Elements

    Hello,
    I scan slides and films and get 16bits Tiff files. For post scan processing I would like to use PE but on the one I have (PE6 for Mac) most of the time before I start using a tool PE is asking me to convert the file into 8bits 'cause Element doesn't manage everything with 16bits files. Do you know if this is likely to change or if I need to buy Photoshop for my needs (as lomg as Photoshop works with 16bits which I assume it does).
    Thanks for your answer and advices
    Pierre

    Thanks for your answer.
    Pierre
    Envoyé de mon iPhone
    Le 24 juil. 2009 à 16:18, Barbara Brundage <[email protected]> a 
    écrit :
    Adobe seems to want to keep this as one of the distinctions between 
    PSE and PS. If you want to work with layers in 16 bits, you need to 
    move to PS. All you have in PSE are the more basic functions.
    >

  • Cannot open a TIFF file with Photoshop CS5

    I have enclosed the URL to a TIFF file. I am not able to open this file using Photoshop CS5, as it says unsupported file with this version. I didn't face this problem before.
    http://www.yousendit.com/download/UW14SXR6QzdtUUU5WThUQw?cid=tx-02002207340200000000&s=191 02
    Thanks in advance.

    Something must have corrupted someting in the file so newer versions of photoshop won't open it.
    I was able to open it in photoshop 3, ImageReady and also paint and a couple of other non adobe image editors/viewers.
    Though the transparency didn't seem to survive.
    If have you some other image editors or viewers you might try those.

  • Can Photoshop open large TIFF files?

    Hi,
    Windows 32-bit OS cannot open TIFF files bigger than 4GB. I need to work on TIFF files that have a size up to 10GB. Does Photoshop support this?
    Thanks,

    The scanned files come from a big Roche cells scanner. Computers which have the Roche utility software can open it and those computer are in 32-bit or 64bit. I have even downloaded a TIFF image, from the nasa site, of 25GB and i could open it on my 32bit Windows OS.
    After doing some research, I found the following site http://www.remotesensing.org/libtiff/document.html . From there, I went to the following site : http://www.awaresystems.be/imaging/tiff/tifftags/extension.html and it seems that some tags within the tiff files are not recognized by some viewers.
    I also installed Microsoft KB2635500 http://support.microsoft.com/kb/2635500, which solves issues when we try to display a large TIFF file that contains multiple pages, althought this is not the case as we speak of a single file. I also should have tried before installing this KB.
    The tiff file (9GB) the user obtained when scanning with a Roche cell scanner is a TIFF file extension. The file I downloaded from the NASA website is also a TIFF file (25GB). I have a 32-bit OS and I could open the NASA tiff file without any problem but another user with a 32-bit OS cannot open any tiff file bigger than 4GB. That user gets the error message stating the file is corrupted or not supported.
    I will check later on in the morning when this user arrives.

  • What is best way dealing with large tiff file in OSX Lion?

    I'm working with large tiff  file (engineering drawing), but preview couldnt handle (unresponsive) this situation.
    What is best way dealing with large tiff file in OSX Lion? (Viewing only or simple editing)
    Thx,
    54n9471

    Use an iPad and this app http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=400600005&mt=8

  • Reading a Tiff file in Photoshop CS5

    OK, this might be a stupid question, but, here it goes.
    How do you read a tiff file in Photoshop CS5 without it applying the alpha channel automatically ?
    Everytime I read a tiff file that has a alpha channel Photoshop will apply the alpha automatically when it opens it. So when that happens I loose everything else on the image.
    In CS2 Photoshop that never happened. It was up to me to apply the alpha from the alpha channel tab.
    Any help would be much appreciated.

    Thanks for the reply.
    When I render a tiff format image, I have a choice to either render with a alpha or not. I pick with alpha.
    In CS2 Photoshop when I would open that tiff file, my image would come up and I would be able to see the whole image I rendered. The alpha would be in the channel tab where I would make active and apply to my image if I wanted to.
    Now in CS5 when I open that same tiff file my image opens up with the alpha applied already. What I mean by applied is my background is gone or transparent. I have no other layer to turn on. Just my image with no background. Also in the channel tab I have no alpha I would have to create one from the original image.
    I hope this explains my issue better, if not let me know I'll have to do some screen shot for you.

  • I am trying to open a .tiff file in photoshop by using bridge and it opens it as a photo in windows. If I go to file open it says could not complete request because it is not the right type of document. It is a file from a lesson folder from school. Can a

    I am trying to open a .tiff file in photoshop by using bridge and it opens it as a photo in windows. If I go to file<open it says could not complete request because it is not the right type of document. It is a file from a lesson folder from school. Can anyone help me?

    Hi,
    The D810 requires Camera Raw 8.6 or later - the latest version that is compatible with Photoshop Elements 12 is Camera Raw 8.5 as far as I can see.
    You need to either buy a new version of Photoshop Elements or use the free Adobe DNG converter.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • Opening iPhoto 8 JPG file with Photoshop CS3 Camera Raw editor

    I have all my photos stored in my iPhoto 8 library. I have both RAW (CR2) and JPG images. iPhoto 8 opens the CR2 images with Photoshop Raw editor, but I want to use iPhoto to open JPG images with the Photoshop Raw editor using Camera Raw.
    How do I do this without having to export JPG images and opening from Photoshop?
    Thanks!
    SP

    SP:
    If you're trying to use the RAW editor on a jpg it can't be done. It will only work on the RAW file. If you are wanting to edit the RAW file from within iPHoto with CS3 then set CS3 to be the editor of choice in iPhoto's general preferences. Next go to the Advanced iPhoto preference pane and select the option "User RAW when using external editor". That will open the RAW file with Photoshop's raw editor. When you finish you MUST save the new file to the Desktop and import as a new file.
    For some general info on using Photoshop with iPhoto:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: iPhoto 8's new option in it's rebuild library window, "Rebuild the iPhoto Library Database from automatic backup" may make this tip obsolete. We'll know when users have occasion to use it and see if that's the case.

  • Saving large tiff files we see a lot of times the lines in the saved file that have either missing ( white) pixels or they appear as a black line across entire file or portion of it

    saving large tiff files we see a lot of times the lines in the saved file that have either missing ( white) pixels or they appear as a black line across entire file or portion of it

    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Large Tiff files

    In our digital print department, all of our techs use PC's, we are seeing really large tiff file sizes. Our techs are opening pdf files in Photoshop, flattening them, and saving as tiff's. The file size of the tiffs are much, much larger than the pdf files before flattening. Our techs just started seeing this recently. Can someone tell me how they usually make tiffs (settings used) or if there is a hidden setting that might need to be changed?

    This is entirely normal. A TIFF will almost always be larger than a PDF, unless the PDF was raster; most are vector. However, if the files are larger than before, you probably have a different resolution than before.

  • Adobe Bridge CC crashes when opening file with Photoshop CC or Camera RAW!

    Adobe Bridge CC crashes when opening file with Photoshop CC or Camera RAW!
    - Tried to Reset the preference with CTRL + Click.
    - It's just new clean install didn't do anything with it yet.
    - Windows 8.
    Any help?

    Just that one project, or any project?  Can you create new projects?

  • An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to ad

    An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to adapt the file to make its reading possible?
    Did somebody get the same problem?

    It is a high order probability that your SQL's report generator is creating the PDF, not Acrobat (which by design and EULA cannot be used in as/with server).
    That the report generator outputs to an old-old version of PDF bears this out.
    Wiki articles on PDF are very nice for those high level intro summaries.
    To know / understand PDF you purchase and study the ISO Standard for PDF (ISO 32000-1:2008).
    Rather than "PDF validation" you may want to consider addressing the appearent root cause of the problem(s).
    You can change the email2fax application to one that can deal with older PDF versions.
    You can change the report generator to one that can output to the ISO Standard.
    (Perhaps the in-use application can be configured to output to the current version of PDF (i.e., the ISO Standard).
    Be well...

  • I can't open D7200 NEF file with Photoshop CS6. I checked the updates and there are no updates available. What do I do?

    Hi,
    I can't open D7200 NEF files with Photoshop CS6.I checked the updates and there are no updates available.What do I do?
    Nitin

    For the time being, shoot JPEG images. At this time there is no support for NEF files from the D7200 in any Adobe product. It was released at such a time that it wasn't included in the last Camera Raw update. And Lightroom hasn't been updated either. Consequently, there is no DNG converter available at this time. We will have to wait and see what programs will be able to accommodate the D7200 when Adobe releases updates or upgrades that support the camera.

  • Associating image files with Photoshop

    I'd like to associate jpg or raw files with Photoshop, whereby I can click on the image file and it will launch directly into Photoshop.  When I try to associate through Windows 8 it fails to find Photoshop CC as an option to open any form of graphic files, yet I can open PS CC directly and then open the files, or go through Bridge.   Thanks.

    I find in windows two thing need to be set correctly for that to work like you want. First the file extension associations must to set to ypir Photoshop version and the windows registry keys for photoshop.exe shell commands open and edit must be set correctly. 
    File associations may be checked and changes with the control panels default programs file association application and the registry keys can be checked. and modified with regedit.

Maybe you are looking for

  • Online Music Service Quest

    Rhapsody, Yahoo, Napster etc.. all have "to go" subscription services. They say you can download as much as you want to your player for whatever price per month. My question is, is it possible to sign up for one month and download everything you woul

  • How do I change the mouse-over value format on the secondary axis?

    Can anyone tell me how I can change the number format for the mouse-over values on the secondary axis of a combination chart?  Right now they take on the format of the primary axis values.  In my case, I need the primary to reflect a general number w

  • Performance of Weblogic 4.03 and Visual Age 2.0

    Hello, I am experiencing severe performance problems when running Weblogic 4.03 and Visual Age 2.0. The server runs extremely slowly in this environment, however, the 3.13 version did not suffer from this. Has anyone else noticed this? Is there anyth

  • CRM 4.0 SR1 install: DBIF_RSQL_INVALID_REQUEST

    Hello, After installation of the ABAP stack of CRM 4.0 SR1 with the export of IDES we got the following error after login into the system: runtime error DBIF_RSQL_INVALID_REQUEST for DOKTL. Every cluster/pool table generates this error, when trying t

  • Mail, is getting very slow

    I have an Imac,  and since a few days ago, is running very slow...  and some times I can not see the mails that are in my inbox... Just the headers...   What's going on?