Writing Adobe Image Resource Block to a Tiff file

Background :
I am working on a small .NET application which reads the tiff file and performs some metadata related operations on it.
The program works fine with all of the tiff Images that are taken from photoshop. I have recieved a tiff file from the client which does not work with the program.
I checked the metadata info for the file using imagemagik following is the output
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 6986x3754+0+0
  Resolution: 96x96
  Print size: 72.7708x39.1042
  Units: PixelsPerInch
  Type: TrueColorAlpha
  Base type: TrueColor
  Endianess: MSB
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
    alpha: 8-bit
  Channel statistics:
    Red:
      min: 37 (0.145098)
      max: 255 (1)
      mean: 215.041 (0.843299)
      standard deviation: 48.8483 (0.191562)
      kurtosis: 0.845012
      skewness: -1.09632
    Green:
      min: 25 (0.0980392)
      max: 255 (1)
      mean: 213.399 (0.836859)
      standard deviation: 50.853 (0.199424)
      kurtosis: 0.908226
      skewness: -1.09806
    Blue:
      min: 21 (0.0823529)
      max: 255 (1)
      mean: 210.495 (0.825471)
      standard deviation: 53.6527 (0.210403)
      kurtosis: 0.124965
      skewness: -0.929882
    Alpha:
      min: 64 (0.25098)
      max: 255 (1)
      mean: 254.948 (0.999796)
      standard deviation: 2.56957 (0.0100768)
      kurtosis: 2437.44
      skewness: 49.3893
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 159.747 (0.626458)
      standard deviation: 44.321 (0.173808)
      kurtosis: 48.4205
      skewness: -8.00071
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Background color: white
  Border color: srgba(223,223,223,1)
  Matte color: grey74
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 6986x3754+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: LZW
  Orientation: TopLeft
  Properties:
    date:create: 2014-02-15T21:18:37+06:00
    date:modify: 2014-02-09T16:29:10+06:00
    signature: a5c4a9415437ee2d3b0c3d860b30c5367f73fe7553c3f54923caf6da4b9e4623
    tiff:alpha: unassociated
    tiff:endian: lsb
    tiff:photometric: RGB
    tiff:rows-per-strip: 3754
  Artifacts:
    filename: C:\Users\Jane\TiffPathOperation\bin\Debug\Example1client_no_path.tiff
    verbose: true
  Tainted: False
  Filesize: 14.6MB
  Number pixels: 26.23M
  Pixels per second: 54.64MB
  User time: 0.484u
  Elapsed time: 0:01.479
  Version: ImageMagick 6.8.7-4 2013-10-26 Q16 http://www.imagemagick.org
Unlike other tiff images this image does not contain 8bim profile information, which is required for proper execution of the program
Profiles:
  Profile-8bim: 11720 bytes
  Profile-icc: 3144 bytes
    Description: sRGB IEC61966-2.1
    Manufacturer: IEC http://www.iec.ch
    Model: IEC 61966-2.1 Default RGB colour space - sRGB
    Copyright: Copyright (c) 1998 Hewlett-Packard Company
  Profile-xmp: 19368 bytes
Possible solution :
I would have to add the Image resource block data to such image in which the profile information is missing.
Problem :
I would have to write metadata for the tag 34377 as given in the Adobe Specification for the listed resource Id
How am I suppose to write this entire block and assign it to the Tag 34377 in C#?
What values should be added for each resource Id ?   
Tiff Image : http://1drv.ms/NtzbCr

Bypassing the portion of the file is not a option in my case since a part
of the program reads the bytes and performs operation on the image when it
reads 8bim.
The image if re-saved in Photoshop gets the required metadata. (Can be seen
by using imagemagik's identify utility)
Only option that I have is to write the information for the resource in
side the Image resource block tag.
How am I suppose to write this resources when I am using BitmapMetadata
class?
Regards,
Charanraj Golla

Similar Messages

  • Help? Unidentified Image Resource Block IDs

    I wrote some code to parse a .psd file written by CS2. The file I'm looking at has some Image Resource Block IDs that I cannot find docs for. Can anyone anyone point me to the right docs so that I can
    The unknown ids are:
    0x42d 1069 (block is 6 bytes long)
    0x430 1072 (block is 4 bytes long)
    0xFA0 4000 (block is 268 bytes long)
    0xFA1 4001 (block is 28 bytes long)
    Dave H

    It doesn't look inside IRBs, but you might find my
    PSD parser useful as reference. It extracts all raster data.

  • Since upgrading to Mavericks, Safari/Adobe are constantly blocking access to PDF files

    Since upgrading to Mavericks, Safari/Adobe (Version 7.0 (9537.71)) are constantly blocking access to PDF files.
    I can intuit what this is all about, however, I can find no information about it... the Adobe Plugin/Safari is apparently building a "white-list" of "trusted sites," but I can not find any information about this white-list -- where it is stored, how to revoke permisions, how to "one-time" permissions, etc.
    Anyone have any ideas?

    I am experiencing this exact same behavior since upgrading to Mavericks, too.

  • Can I automate the writing of XMP metadata into JPEG and TIFF files?

    I have written an ASP.NET 3.5 website application on behalf of an annual international photographic competition. Entrants will be uploading digital photos in either JPEG or TIFF format. Ideally, I would write entrant identity and image title information into the XMP metadata for each image immediately after upload - but so far, I have failed to find any way to do this in ASP.NET.
    Thousands of images are involved, so I need to find a way to automate the metadata insertion, perhaps with some sort of script that uses a text file (extracted from the SQL Server database on my website) as the source of the metadata for a batch of images. Is this the sort of task that can be done by writing a script for Bridge CS3? Are there any scripts already in existence that I could use? I am a total beginner in this area.
    I use a Win XP PC, though I have a colleague who, I think, has CS3 on his Mac (running under the Leopard OS), so scripts for either platform might be usable.
    David

    You are the man X!
    Ok here is another version with a check for the dll.
    #target bridge 
       if( BridgeTalk.appName == "bridge" ) {
    addInfo = new MenuElement("command", "Update Entry Details", "at the end of Thumbnail");
    addInfo .onSelect = function () {
         main();
    function main(){
    var csv = File.openDialog("Please select CSV file.","CSV File:*.csv");
    if(csv != null){
    loadXMPScript();
    csv.open("r");
    while(!csv.eof){ 
       strInputLine = csv.readln();
       if (strInputLine.length > 3) {
          strInputLine = strInputLine.replace(/\\/g,'/');
       inputArray  = strInputLine.split(",");
       var csvFile = new File(inputArray[0]);
       var title = inputArray[1];
       var author = inputArray[2];
    if(!csvFile.exists) {
    alert(csvFile + " Does not exist"); //////////Check if file exists
    return;
    if(csvFile.exists){
    var file = new Thumbnail(csvFile);
    try{
    var xmpFile = new XMPFile(file.path, XMPConst.UNKNOWN,XMPConst.OPEN_FOR_UPDATE);
    }catch(e){
          alert("Problem opening xmp for update:-\r" + file.path +"\r" +e.message);
          return;
    try{
    var xmp = xmpFile.getXMP();
    }catch(e){
          alert("Problem opening xmp data:-\r"  + e.message);
          return;
    xmp.deleteProperty(XMPConst.NS_DC, "creator");
    xmp.deleteProperty(XMPConst.NS_DC, "title");
    try{
    xmp.appendArrayItem(XMPConst.NS_DC, "creator", author, 0,XMPConst.ARRAY_IS_ORDERED);
    xmp.appendArrayItem(XMPConst.NS_DC, "title", title, 0,XMPConst.ARRAY_IS_ORDERED);
    }catch(e){
          alert("Problem writing xmp data:-\r"  + e.message);
          return;
    if (xmpFile.canPutXMP(xmp)) {
    xmpFile.putXMP(xmp);
    }else{
    alert("Can not write new metadata to " + csvFile.spec); 
    xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    unloadXMPScript();
    function loadXMPScript()
       var results = new XMPLibMsg("XMPScript Library already loaded", 0, false);
       if (!ExternalObject.AdobeXMPScript)
          try
             ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');    
             results.message = "XMPScript Library loaded";
          catch (e)
             alert("Could not load AdobeXMPScript \r" + e.message);
             results.message = "ERROR Loading AdobeXMPScript: " + e;
             results.line = e.line;
             results.error = true;
       return results;
    function unloadXMPScript()
       var results = new XMPLibMsg("XMPScript Library not loaded", 0, false);
       if( ExternalObject.AdobeXMPScript )
          try
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
             results.message = "XMPScript Library successfully unloaded";
          catch (e)
             results.message = "ERROR unloading AdobeXMPScript: " + e;
             results.line = e.line;
             results.error = true;
       return results;
    function XMPLibMsg (inMessage, inLine, inError)
       this.message = inMessage;
       this.line = inLine;
       this.error = inError;

  • HP Scan 1 bit scan to pdf embeds images as jpeg rather than tiff

    Using HP Scan (latest version to date of 32.30.198.49673) and scanning in 'Black and White' to PDF (not 'Searchable PDF'), the image is embedded into the PDF as a jpeg (!!!), which means that the file is much larger than it needs to be, as it could go in as a lossless 1 bit tiff file. The image in the PDF looks like a 1 bit image, but 1 bit jpegs do not exist of course.
    So, on a medium high image quality setting I get a file size (for a particular document) of 546KB, whereas the same scan to 1 bit tiff (on the same device with using HP scan) is 36kB (15 times smaller)
    To be sure that it was embedding the scanned image as a jpeg instead of a tiff I set the file quality to low and you could see the jpeg compression artifacts which were a mixture of greys - thereby proving that it was a greyscale jpeg (of course, 1 bit jpegs don't exist), even though, visually, it looks just like a 1 bit scan in all other ways.
    How can I get HP Scan, when I choose 'Black and White' to 'PDF', to embed the image as a 1 bit Tiff file, rather than a greyscale jpeg? I don't really want to store a file that is 15 times bigger in file size than it needs to be.
    Thanks,
    Mark

    Hello @markp4000, 
    Welcome to the HP forums.
    I understand that you would like the images saved as a .tiff instead of a .jpeg, when you scan to PDF.
    Unfortunately there is no option to change how HP's software creates the PDFs.
    You will most likely need 3rd party software to optimize your scanning results.
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Opening image without tiff file

    Hi, I want to know if it is possible to open an image in illustrator without original tiff file and instead use pdf to open the image.

    Open the PDF in Photoshop.
    Then in PDF options select "Images"

  • Compression a tiff file from 25 MB to 2-3 MB by lwz

    I need help. I am trying to compress a tiff file (CMYK) using lwz format.
    The size of the file is 25 MB. Photoshop (CS5) compressed it to a 19 MB-file.
    I need to compress the file to at leats 2-3 MB size. Any one how to do it?

    Bypassing the portion of the file is not a option in my case since a part
    of the program reads the bytes and performs operation on the image when it
    reads 8bim.
    The image if re-saved in Photoshop gets the required metadata. (Can be seen
    by using imagemagik's identify utility)
    Only option that I have is to write the information for the resource in
    side the Image resource block tag.
    How am I suppose to write this resources when I am using BitmapMetadata
    class?
    Regards,
    Charanraj Golla

  • How to read a tiff file that has more than one page?

    Hi,
    I use JAI to read TIFF image and get the pixels from a raster object. A TIFF file can have more than one image in itself. The JAI doc from SUN only mentioned that we can get the number of IFD (image file directory) by using
    getNumDirectories() function but no description about how to get different images separately out of one TIFF file. Does any one know how to do it or some example programs implementing such function? Thanks a lot.
    Marvin

    I'm not sure if this helps, but here's a web page which talks about Image I/O:
    http://java.sun.com/products/java-media/jai/iio.html
    For your problem, they have a sample solution which can read a specific page of a multi-page tiff file, so perhaps you could make a loop to read all of the pages:
    http://java.sun.com/products/java-media/jai/forDevelopers/samples/MultiPageRead.java
    Good luck!

  • How to save raw images as TIFF files on Adobe Bridge?

    I am trying to upload my raw images from my camera onto Adobe Bridge and save them as a TIFF file. But it does not give me that option and simply automatically saves them as JPEGs.
    Where is the option to keep them as raw, large TIFF files?

    This is the Adobe Reader forum.  Your question is concerning about what software?

  • Server goes out of memory when annotating TIFF File. Help with Tiled Images

    I am new to JAI and have a problem with the system going out of memory
    Objective:
    1)Load up a TIFF file (each approx 5- 8 MB when compressed with CCITT.6 compression)
    2)Annotate image (consider it as a simple drawString with the Graphics2D object of the RenderedImage)
    3)Send it to the servlet outputStream
    Problem:
    Server goes out of memory when 5 threads try to access it concurrently
    Runtime conditions:
    VM param set to -Xmx1024m
    Observation
    Writing the files takes a lot of time when compared to reading the files
    Some more information
    1)I need to do the annotating at a pre-defined specific positions on the images(ex: in the first quadrant, or may be in the second quadrant).
    2)I know that using the TiledImage class its possible to load up a portion of the image and process it.
    Things I need help with:
    I do not know how to send the whole file back to servlet output stream after annotating a tile of the image.
    If write the tiled image back to a file, or to the outputstream, it gives me only the portion of the tile I read in and watermarked, not the whole image file
    I have attached the code I use when I load up the whole image
    Could somebody please help with the TiledImage solution?
    Thx
    public void annotateFile(File file, String wText, OutputStream out, AnnotationParameter param) throws Throwable {
    ImageReader imgReader = null;
    ImageWriter imgWriter = null;
    TiledImage in_image = null, out_image = null;
    IIOMetadata metadata = null;
    ImageOutputStream ios = null;
    try {
    Iterator readIter = ImageIO.getImageReadersBySuffix("tif");
    imgReader = (ImageReader) readIter.next();
    imgReader.setInput(ImageIO.createImageInputStream(file));
    metadata = imgReader.getImageMetadata(0);
    in_image = new TiledImage(JAI.create("fileload", file.getPath()), true);
    System.out.println("Image Read!");
    Annotater annotater = new Annotater(in_image);
    out_image = annotater.annotate(wText, param);
    Iterator writeIter = ImageIO.getImageWritersBySuffix("tif");
    if (writeIter.hasNext()) {
    imgWriter = (ImageWriter) writeIter.next();
    ios = ImageIO.createImageOutputStream(out);
    imgWriter.setOutput(ios);
    ImageWriteParam iwparam = imgWriter.getDefaultWriteParam();
    if (iwparam instanceof TIFFImageWriteParam) {
    iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    TIFFDirectory dir = (TIFFDirectory) out_image.getProperty("tiff_directory");
    double compressionParam = dir.getFieldAsDouble(BaselineTIFFTagSet.TAG_COMPRESSION);
    setTIFFCompression(iwparam, (int) compressionParam);
    else {
    iwparam.setCompressionMode(ImageWriteParam.MODE_COPY_FROM_METADATA);
    System.out.println("Trying to write Image ....");
    imgWriter.write(null, new IIOImage(out_image, null, metadata), iwparam);
    System.out.println("Image written....");
    finally {
    if (imgWriter != null)
    imgWriter.dispose();
    if (imgReader != null)
    imgReader.dispose();
    if (ios != null) {
    ios.flush();
    ios.close();
    }

    user8684061 wrote:
    U are right, SGA is too large for my server.
    I guess oracle set SGA automaticlly while i choose default installion , but ,why SGA would be so big? Is oracle not smart enough ?Default database configuration is going to reserve 40% of physical memory for SGA for an instance, which you as a user can always change. I don't see anything wrong with that to say Oracle is not smart.
    If i don't disincrease SGA, but increase max-shm-memory, would it work?This needs support from the CPU architecture (32 bit or 64 bit) and the kernel as well. Read more about the huge pages.

  • No option in adobe reader 9.2 when opening a pdf file to "save as" a tiff file

    Hi, I want to save a pdf file as a tiff file.  I have Adobe Reader 9.2 and windows xp.  In the Adobe website, it says I can export or convert a pdf file into different formats.  However, when opening an existing pdf file, there isn't an option to export or "save as" in the Tools menu or in the Preferences under Edit.  The reason I want to save a pdf file into a tiff file format is because when I use the program Microsoft Office Document Imaging to open a tiff file, it allows me the option to move selected pages & save it as a new file.  In a pdf file, I have to save all the pages as one file & I don't necessarily want all the pages.   My only other option is to print the selected pages I want from the adobe file document and then scan it into a tiff file but I would hate to use paper just for that purpose.
    Any help is appreciated.
    Thanks,

    You can use a tiff printer driver:
    http://server3.nethost.co.il/set_tif.html

  • Unable to find adobe pdf resources

    I have creative cloud and have installed Acrobat PRO XI.  However, in word when I click Acrobat and click preferences I get an error unable to find adobe pdf resources.
    It seemed to work before I installed XI. Any suggestions?

    I'm using Word 2010 and the Acrobat information is one of the tabs on the top.
    When I click on the file there is a save as Adobe PDF but this also gives the error. I can do a save as PDF and it will make a PDF, but it does not allow me to save images without compacting. That is why I need to access the preferences.

  • Can assets be images of type jpeg,gif,Tiff,etc... ?

    Hi,
    I am working  on ES2.
    I am able to take PDF file as form to the  my  process. Here  my  new requirement is   in addition to  pdf  I need to take all types  of  images
    say jpeg,gif, and Tiff  as  input to my  process.  But I am not able to do that bcas Workbench only  takes *.pdf as input.
    If you have other extensions  expect  pdf,  while   taking the asset into the  start activity, I  could  not  find that  file in the  application.
    Please help me in this regard how  workbench takes  all image files as inputs into  the  process.
    Thanks
    Praveen.

    Hi Scott,
    Thanks for your reply.
    Yes   I  have to use as image file as form  to the process.
    I am using  Adobe LC ES2.
    Let  me explian my  requirement :  I have  scanned image   and  need to use that image as input to the process i mean image as form  to the process.
    I will invoke the process then  scanned image should come as form  in the  workspace .
    Please help in this regard.
    Thanks
    Praveen.

  • Does Adobe offer an app to perform a batch conversion from Canon CR.2 raw files to TIFF files?

    Apply Adobe Photoshop to astrophotography requires numerous images to be converted from a raw CR.2 file to TIFF files. Does Adobe offer an app to perform a batch conversion from Canon CR.2 raw files to TIFF files?
    Thanks.

    Trevor.Dennis wrote:
    Note the option to open the first file and apply settings.
    Personally, I'd be nervous of batch processing RAW files because they can need significantly different treatments file to file, but it is doable.  I would assume that Image Processor would allow the XML sidecar files, so you would have the option of looking through and fine tuning any files that were not up to scratch.
    You do not need to use that option.   There are two other options.   If the RAW file has never been process by ACR then ACR would use your defaults for the cameras used no ACR dialog UI will display.  If the RAW file has been process by ACR there are ACR settings either in you ACR database or in your RAW files sidecar files in the same folder as the raw file these will be used.
    I will often use the Bridge to process groups of RAW image files that look like they have similar exposures looking at the thumbnails the bridge displays.  ACR will open for the group of RAW files.  I will process one RAW file and sync the settings to the other image in the group.   I may also  make other ACR setting for some in the group like crops or spot healing for dust that may be in some sykes  because my sensor needed cleaning. When I'm done all I do is click on the DONE button in ACR so it will save out ACR setting for all the raw files in the group.  No image files are saved.   When I use the image processor script I never use the open first RAW option and the Automate Image Processor Pro plug-in script does not have that option open first RAW  in ACR and use the setting set for all other RAW files..

  • When I try to open an image by double clicking on it in Bridge, I get a message telling me to log in to Creative Cloud.  I am running CS6, and the default should be to open files in Photoshop 6 or in Adobe Raw (if it's a Raw file).  I don't want to log in

    When I try to open an image by double clicking on it in Bridge, I get a message telling me to log in to Creative Cloud.  I am running CS6, and the default should be to open files in Photoshop 6 or in Adobe Raw (if it's a Raw file).  I don't want to log into CC since I am not a subscriber, and this means that I have to work around, and go  back to Bridge, and tell it to open the file in Adobe RAW.  However, this does not work for older psd files which for some reason cannot be opened in RAW.  How do I return to the process of simply allowing RAW files to open automatically in Adobe RAW, and simply right clicking on the image in Bridge to bring up the option of opening it in Photoshop?

    <moved from Adobe Creative Cloud to Bridge General Discussion>

Maybe you are looking for

  • Microsoft has stopped working error in windows 7

    when ever i close an worksheet or word document it gives the error excel/word has stopped working, but the program is running in the back ground when we look into task manager. we did tried with windows 7 repair and also reinstalled office 2007 also

  • How do I find and delete duplicate bookmarks ?

    How do I find and delete duplicate bookmarks ? Mac OS X

  • Audio Not Playing in Published Version

    I have a 41 slide project with audio on each slide. When I preview in browser(f12) all audio plays fine. When I publish to SWF the audio drops at slide 28 and continues to the end. I have checked all settings in the Publish preferences and the indivi

  • Oracle 9i RAC installation

    dear All, if I want to install oracle9i RAC on a cluster do I need any additional CD other than the 3 database CDs thank you in advance for the reply

  • My mac isnt reading my ipod anymore!!!  :(:(:(:(

    tunes stoped reading my ipod touch tonight! I dont know why... everything seems normal... iphoto still reads it. But the little icon that usually appears on my desktop when i plug it in isn't there anymore... why???