Error saving TIF image with JPEG compression (IndexColorModel)
Hi all,
i recently came upon the following error:
javax.imageio.IIOException: Metadata components != number of destination bands
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.checkSOFBands(JPEGImageWriter.java:1279)
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:694)
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:339)
at com.sun.media.imageioimpl.plugins.tiff.TIFFBaseJPEGCompressor.encode(TIFFBaseJPEGCompressor.java:489)
at com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeTile(TIFFImageWriter.java:1835)
at com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWriter.java:2686)trying to save a tif file with jpeg compression. The code used is this:
public static void main(String[] args) throws Exception{
String s = "c:/sample images/gray_bug/graybug.tif";
BufferedImage bi = ImageIO.read(new File(s));
File outFile = new File(s + "-out.tif");
ImageWriter writer = (ImageWriter)ImageIO.getImageWritersByFormatName("TIF").next();
ImageOutputStream ios = ImageIO.createImageOutputStream(outFile);
ios.setByteOrder(ByteOrder.LITTLE_ENDIAN);
writer.setOutput(ios);
TIFFImageWriteParam writeParam = new TIFFImageWriteParam(Locale.ENGLISH);
writeParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
writeParam.setCompressionType("JPEG");
writeParam.setCompressionQuality(1f);
IIOImage iioImage = new IIOImage(bi, null, null);
writer.write(null, iioImage, writeParam);
writer.reset();
writer.dispose();
ios.flush();
ios.close();
}The test image that creates the problem can be found here:
http://s11.postimage.org/7wl195w8z/graybug.png
Any ideas what might be wrong?
I am using imageio 1.2-pre-dr-b04 and JDK 1.6.
TIA,
Costas
I can't help you but here's an exercise for you. When you get an exception you can't explain yourself, try posting it in Google. With a catch: remove anything from the error message that is specific to you like a classname or a specific value.
In this case there is nothing specific in the error message so try a search for "javax.imageio.IIOException: Metadata components != number of destination bands". One thing is for sure: you're not the first to run into this error.
Similar Messages
-
Tiff image with JPEG compression
How does photoshop handle RGB and YCbCr as photometric interpretations of tiff image with JPEG compression?
Are they same?Got no idea but here is a website with a adobe pdf answer.
http://www.ask.com/web?q=How+does+photoshop+handle+RGB+and+YCbCr+as+photometric+interpreta tions+of+tiff+image+with+JPEG+compression%3F&search=&qsrc=0&o=0&l=dir -
I can't save tif with jpeg compression method
Hello, I've trouble to saving image in tif format with jpeg compression method.
With the same image this option some times is unavailable, randomly, I don't know how.
After some practice I leave that if I open an image previously saved in tif-jpeg the option turn on for the next save.
I've got both CS5 and CS4, and the odd thing is this occour on all.
Someone have triks?
Thanks.
LucaI know very well the difference betwin a background layer and transparent layer...
I'm writing about a bug, or interference from something, when I want saving an image in tiff format with jpeg compression.
I'm asking if someone had a similar trouble and know a solution and/or trik to solve this!!!
I hope make myself clear. -
Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?
If you think you're insane now, try maintaining those pop up menus.
As far as I know, these menus have not been updated since FW 8, so
they are at least two versions old.
Save yourself a lot of grief by avoiding those menus. There are many
other products on the market which do a much better job of creating
and maintaining this type of navigation structure.
Read this link before you climb any higher on this slippery slope:
http://apptools.com/rants/jsmenu.php
There was another blog post by the fellow who originally wrote the pop
up menu feature, but I can't seem to locate it. Even he says stay away
from them.
Not the answer you probably want, but I hope it helps, nonetheless.
Jim Babbage -
Saving Binary Image with Overlay?
Hi
I'm having some issues saving an image with overlay information. I'm using IMAQ Find Circles to measure the radii of holes in a binary image. The hole data is then used with IMAQ Overlay Oval, to draw on ovals to highlight the circles detected. Works fine and the image is shown as expected in the image output on screen, pallette is set to binary. (See second image of 3, below)
When I try and save the image to PNG I just get a blank (black) image. If I use the IMAQ Merge Overlay tool, I just get the green circles on the black (see last image of 3 below). Is there something I'm missing with pallettes/merging? Any help much appreciated. Snapshot of (messy) code attached.
Solved!
Go to Solution.
Attachments:
forum2.PNG 47 KBThe problem is the binary image is all zeroes and ones. A normal image goes up to 255, so a value of 1 looks black.
One solution is to multiply the binary image by 255, which makes the image black and white.
Bruce
Bruce Ammons
Ammons Engineering -
Error uploaading .tif image
Hi,
i want to upload an .tif image in the RSTXLDMC but an error occurs:
Uploading TIFF Files to SAPscript Texts 1
The file contains 1.343.164 bytes
This is a TIFF file with INTEL byte order
First IFD offset: 1.342.870
Reading IFD from offset 1.342.870 Number of Tags 24
ImageWidth: 2.480
ImageLength: 3.508
BitsPerSample levels: 3
BitsPerSample - level 1: 8
BitsPerSample - level 2: 8
BitsPerSample - level 3: 8
Compression: 5
Photometric Interpretation: 2
Number of StripOffsets: 3.508
SamplesPerPixel: 3
RowsPerStrip: 1
Number of StripByteCounts: 3.508
XResolution: 96 / 1
YResolution: 96 / 1
ResolutionUnit: 2
TIFF format error: No baseline TIFF 6.0 file
Please help...
thank you...
regards,
maeHi
You need to convert the tiff image before upload
sometimes we will get this error for uploading
please use graphical tools to convert the actual image and save it as tiff image agiain and try upload.
I had same problem earlier, and i resolved it in the same way
I've used this http://www.batchconverter.com/
Pavan
Message was edited by:
Pavan Kothapalli -
How to get a .tif image with n different colors?
Hi..i want to know how can i get a .tif image colored by some colors. I want to do something like this:
if(tifImage.pixel < 0.1) {
tifImage.pixel = yellow;
else if( 0.1 <= tifImage.pixel && tifImage.pixel <0.5){
tifImage.pixel = red;
up to n colors.
I prove the next code, but it is not getting the colors i want.
public void generateImage(BufferedImage bi,double alto,double medio,String output){
int width = bi.getWidth(); // Dimensions of the image
int height = bi.getHeight();
// Some constant colors (as arrays of integers).
int[] red = {255, 0, 0};
int[] green = { 0,255, 0};
//int[] blue = { 0, 0,255};
int[] yellow = {255,255, 0};
//int[] background = { 85, 85, 85};
int[] background = { 255, 255, 255};
// The original image data will be stored on this array.
int[][][] imageData = new int[width][height][3];
// We'll fill the array with a test pattern bars thingie.
double[] pixelArray=null;
for(int w=0;w<width;w++)
for(int h=0;h<height;h++)
if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=9000){
//lo dejo blanco
imageData[w][h] = background;
else if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=alto){
//lo dejo rojo
imageData[w][h] = red;
else if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=medio){
//lo dejo amarillo
imageData[w][h] = yellow;
else{
//lo dejo verde
imageData[w][h] = green;
// Now we have a color image in a three-dimensional array, where the
// third dimension corresponds to the RGB components.
// Convert the color image to a single array. First we allocate the
// array.
// Note that this array will have the pixel values composed on it, i.e.
// each R,G and B components will yield a single int value.
byte[] imageDataSingleArray = new byte[width*height*3];
int count = 0;
// It is important to have the height/width order here !
for(int h=0;h<height;h++)
for(int w=0;w<width;w++)
// Rearrange the data in a single array. Note we revert RGB, I still don't
// know why.
imageDataSingleArray[count+0] = (byte)imageData[w][h][2];
imageDataSingleArray[count+1] = (byte)imageData[w][h][1];
imageDataSingleArray[count+2] = (byte)imageData[w][h][0];
count += 3;
// Create a Data Buffer from the values on the single image array.
DataBufferByte dbuffer = new DataBufferByte(imageDataSingleArray,width*height*3);
// Create an pixel interleaved data sample model.
SampleModel sampleModel =
RasterFactory.
createPixelInterleavedSampleModel(DataBuffer.TYPE_BYTE,
width,height,3);
// Create a compatible ColorModel.
ColorModel colorModel = PlanarImage.createColorModel(sampleModel);
// Create a WritableRaster.
WritableRaster raster = RasterFactory.createWritableRaster(sampleModel,dbuffer,new Point(0,0));
// Create a TiledImage using the SampleModel.
TiledImage tiledImage = new TiledImage(0,0,width,height,0,0,sampleModel,colorModel);
// Set the data of the tiled image to be the raster.
tiledImage.setData(raster);
// Save the image on a file.
JAI.create("filestore",tiledImage,output,"TIFF");
ThanksI tried that. When I open one image and set the exposure, then go to open the second image, nothing happens. I then saved one image as a psd file, then it would let me open the raw file a second time. When I had both open on the same screen and dragged the layer from one into another image, the layer size ended up being different than the other file. It was shifted down and to the left. I need these images to be pixel locked, and the user experience I went through did not allow me to do this.
I also do not see a way to copy/paste layers between files. -
Wordpress http error while uploading images with flash
Hi guys
I have a problem with my wordpress blog " bollywood wallpapers ". When I try to upload images with defualt wordpress flash uploader I get "http" error.
I am having this problem from last 5 months.Dear Siva,
that is indeed strange.
Still don't know if this could be an issue with your NWDS or the PAR itself.
So let's do 2 tests
===============================================
TEST NR. 1
Let's try and check the NWDS first by creating a custom PAR.
Don't worry, it's easy.
Just open your NWDS and go to the top menu
File > New > Project
Inside the popup window that will open please choose
Portal Application (on the left) and Create a Portal Application Project (on the right)
Then give any name you would like (no spaces or dots, etc...)
You now have a Portal project created on NWDS ( you will see a folder on the left side with your project name)
Click on that folder with your LEFT mouse button and choose EXPORT
Choose PAR File
Choose your Project
Choose a path where you want your PAR file to be saved. (uncheck the deploy PAR file, but check the include the source code).
And click Finish.
Now delete the project you have created (by clicking on the folder with your LEFT mouse button again, but chose DELETE project)
Now you're ready to re-import the PAR file.
===============================================
TEST NR. 2
Maybe your standard PAR file that you've downloaded doesn't have the source code included or is corrupted.
Please try to open it with a ZIP program and check what type of structure/files you have there.
Have you also checked your NWDS log ?
You could also share here that log, so that I can better help you.
Kindest Regards
/Ricardo -
Error saving column settings with ORA-01403: no data found Error
Hi
I have a region with multi row report updatable.
When I am trying to change the query I am getting below error.
Anybody let me know what will be the problem.
ORA-01403: no data found
Error saving column settings
Regards
KiranHi
I was using below query for this region.
SELECT
result.segment1 Item#,
result.inventory_item_id,
result.revision,
result.lot_number,
result.Lot_Onhand,
result.Heat,
result.Cert_Site_Number Cert_Site_Number_Display,
result.status_code Status_Code_Display,
result.Cert_ID Cert_ID_Display,
result.Cert_Site_Number,
result.status_code,
result.Cert_ID,
result.transaction_id,
result.po_header_id,
result.po_line_id,
result.rcv_transaction_id,
result.shipment_header_id,
result.shipment_line_id
FROM
SELECT
msi.segment1,
mmt.inventory_item_id,
mmt.revision,
mtln.lot_number,
xx_utility_pkg.get_available_qty(mmt.inventory_item_id,mmt.organization_id,mmt.subinventory_code,mtln.lot_number,'ONHAND') Lot_Onhand,
mtln.attribute1 Heat,
mtln.attribute2 Cert_Site_Number,
mms.status_code,
( SELECT clx.cert_id
FROM xxqc.cert_mst cm,
xxqc.cert_lot_xref clx
WHERE cm.cert_id = clx.cert_id
AND cm.cert_type='MILL'
AND clx.lot_no = mtln.lot_number
) Cert_ID,
mmt.transaction_id,
rsl.po_header_id,
rsl.po_line_id,
mmt.rcv_transaction_id,
rt.shipment_header_id,
rsl.shipment_line_id
FROM mtl_material_transactions mmt,
mtl_transaction_lot_numbers mtln,
mtl_material_statuses_tl mms,
rcv_transactions rt,
rcv_shipment_headers rsh,
rcv_shipment_lines rsl,
mtl_system_items_b msi
WHERE mmt.transaction_id = mtln.transaction_id
AND mmt.organization_id = mtln.organization_id
AND mtln.status_id = mms.status_id
AND rt.transaction_id = mmt.rcv_transaction_id
AND rsh.shipment_header_id = rt.shipment_header_id
AND rsl.shipment_header_id = rsh.shipment_header_id
AND rsh.organization_id = mmt.organization_id
AND rsl.item_id = mmt.inventory_item_id
AND msi.inventory_item_id=rsl.item_id
AND msi.organization_id = mmt.organization_id
AND rsl.po_line_id = DECODE(:P5_PO_LINE_NUMBER, 0,rsl.po_line_id,:P5_PO_LINE_NUMBER)
AND rsl.po_header_id IN ( SELECT po_header_id
FROM po_headers_all
WHERE segment1 = :P5_PO_NUMBER
AND org_id = :P5_ORG_ID)
AND mtln.status_id = 90 -- Which is 'T' Status means Temporary
AND mmt.transaction_action_id = 27
AND mmt.transaction_source_type_id = 1
AND mmt.transaction_type_id = 18
) result
WHERE result.Lot_Onhand > 0
when I use above query I am able to update the region perfectly.
But when I comment last WHERE CONDITION I am getting above problem.
What could be the possilbe reason for this?
Regards
Kiran Akkiraju -
Saving an image with altered metadata corrupts it
When I apply a set of metadata by Nikon NX2 and then save the image on iPhoto, then it becomes impossible to open it again: the error I receive is the following (in Italian):
Impossibile caricare il file: Macintosh HD/Utenti/fbartolom/Immagini/iPhoto Library/Masters/2010/03/20/20100320-121339/DSC_6029_5.NEF Formato colore non valido. Il formato del file non è supportato.
Please not that if I just save the image on the disk the problem does not surface, neither if later I import it to iPhoto and open it again.
So there must be a glitch in the direct saving from NX2 to iPhoto. Has anyone some cue on what is the problem and how to solve it? Of course saving each image and importing them again should be a little of an overkill.Yes, I am using it since I bough it nearly 3 years ago without any problem. Frankly I am non sure I understood what you said: so I explain what I do and what iPhoto and NX2 do:
1) I click modify on a NEF image in iPhoto 11.
1') iPhoto duplicated the photo and launches NX2 on this duplicated photo.
2a) I edit the picture and Save the image.
2a') iPhoto 11 correctly opens this latter image - I will have to manually delete the original photo.
2b) I enter the metadata in the image on NX2 and SAVE.
2b') iPhoto reports an error when I try to re-open the saved NEF file. -
Error saving user changes with amclientsdk 6.3
We have an application that was originally developed for the JES2 stack that handles creation and maintenance of users for our portal environment. We are running Access Manager 7.1 in Legacy Mode and per suggestions from people on this forum we are using the AMClientSDK 6.3 code.
The main change that we had to make to the code to get it running was to replace the createSSOToken(userID, password) method of getting our connections with the AuthContext methodology. This has been completed without any problems. However, we are now having the following problem when trying to create users.
As a bit of background, the application first creates the user entry with just the userID and name information that is required by the directory. Once that is complete it goes back in and does an update on that user with the rest of their registration information.
public boolean save() throws EGatewayException {
try {
logger.debug("User entry has changed is: " + dirty);
if (dirty) {
logger.debug("We need to store the updates for the user...preparing to call store()...");
_amUser.store();
logger.debug("Back from storing user changes...set dirty flag to false.");
dirty = false;
if (logger.isDebugEnabled()) {
logger.debug("User " + _amUser.getDN() + " saved.");
return true;
} else {
logger.debug("Dirty flag is " + dirty + "but we'll store anyways...");
_amUser.store();
// Not sufficient time to test removing this line!
logger.debug("No values actually changed. Saving anyway.");
return false;
} catch (Exception e) {
if (e instanceof AMException) {
String code = ((AMException) e).getErrorCode();
logger.debug("AMException error code is: " + ((AMException) e).getErrorCode());
if (code.equals("452")) {
logger.debug("Error 452. Must be a password problem");
throw new EGatewayPasswordException(
logger,
"Error 452. Must be a password problem",
e);
throw new EGatewayException(
logger,
"Error saving user " + getDn(),
e);
When the update occurs we see the following error in the logs.
[6/28/07 12:13:13:001 EDT] 00000041 SystemOut O 2007-06-28 12:13:13,001 com.bcbsm.common.egateway.DirectoryConnection AMException error code is: 1000
[6/28/07 12:13:13:041 EDT] 00000041 SystemOut O 2007-06-28 12:13:13,032 com.bcbsm.common.egateway.DirectoryConnection Error saving user uid=joanof2,ou=People,o=Members,dc=bcbsm,dc=com: New Generic Exception
com.iplanet.am.sdk.AMException: New Generic Exception
at com.iplanet.am.sdk.remote.DirectoryManager.setAttributes(DirectoryManager.java:1063)
at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:601)
at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:868)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1737)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1677)
at com.bcbsm.common.egateway.DirectoryConnection$User.save(DirectoryConnection.java:1481)
at com.bcbsm.egateway.data.MemberConnection.updateMember(MemberConnection.java:267)
at com.bcbsm.egateway.data.MemberConnection.createMember(MemberConnection.java:99)
at com.bcbsm.egateway.data.ActualDirectory.createMember(ActualDirectory.java:108)
at com.bcbsm.egateway.struts.AccountCreationAction.createAccount(AccountCreationAction.java:168)
at com.bcbsm.egateway.struts.AccountCreationAction.doExecute(AccountCreationAction.java:85)
at com.bcbsm.egateway.struts.BaseAction.execute(BaseAction.java:112)
Any insight or assistance is appreciated.
Thank you.Is the agent app user id in the AMConfig.properties amadmin or a user who belongs to the top level admin role?
-
PSE6 - Saving RAW images as JPEG
I am new to PSE6. I have a Pentax K10D dslr, which can create raw images in either the Pentax proprietary PEF format or Adobe's DNG format.
I have downloaded the latest version (4.4.1) of Adobe Camera Raw. PSE6 opens and processes either type of raw file with no problem.
My problem comes when I try to save the file. I click on "File" - "Save As". There is a line to specify the file name, and a pull-down menu with several file types. Standard JPEG is not included in the list. JPEG 2000 is in the list, but when I save the file in that format, the resulting file is more than 3 times the size of the original raw file. None of my other software knows what to do with a JPEG 2000 file, either.
Have I done something wrong? Am I missing something? Must I save the file in its original format (PEF or DNG) and then use some other program to convert it to JPEG, so that I can send it somewhere to be printed?
Paul NobleYou have to convert the file to 8bits/Channel. You can either do that in
ACR or in the Editor (>Image >Mode).
Juergen -
Show a .tif image with ImageIcon?
I'm using ImageIcon class to display images, but I have a tif formatted image. ImageIcon doesn't seem to support it. Is there a work around?
Use the feedback link?
-
Anyone else having trouble opening CMYK PDFs from Photoshop CC with JPEG 'high' compression?
(Cross-post from the Photoshop forum, where I was asked to post in the Acrobat forum: http://forums.adobe.com/message/5553829 )
When I save a PDF file in Photoshop CC in CMYK color with JPEG compression (quality = high), it will save without any errors. However, when I open the file in Acrobat (11.0.3), I get an "Out of Memory" pop up error. I press Ok, and the document is just displayed as a blank white image.
I'm using Win7 64-bit, Photoshop CC 64-bit. Plenty of memory (24GB) and allocated RAM in preferences, and I've done some troubleshooting that leads me to believe the error is not due to system memory, but rather a specific bug in the software. I have Photoshop CS6 on the same machine, and if I open the PSD, save as PDF with the above settings, everything is fine when I open it using Acrobat. This seems to just be for Photoshop CC, not CS6.
Here is the troubleshooting I've done so far:
PDF format, RGB color, any other settings --> Acrobat can open the file.
PDF format, CMYK, no compression --> Acrobat can open the file.
PDF format, CMYK, JPEG compression [medium] --> Acrobat can open the file.
PDF format, CMYK, JPEG compression [high] --> Acrobat can NOT open the file because it encounters the "out of memory" error.
PDF format, CMYK, JPEG compression [maximum] --> Acrobat can open the file.
This is silly. I don't get it. Can anyone else confirm this problem for me?
Updated:
Like you said, there isn't enough information to rule out an issue with Photoshop CC, as the same action using Photoshop CS6 results in a usable file.
New information (while making files for uploading):
The error only occurs with CMYK files of larger dimensions. On a 500x500px image, Acrobat throws out "A drawing error has occured". a 2500x2500px image runs into the "Out of memory" error. In either case, Acrobat cannot successfully open the file generated by Photoshop CC, while it can if it was made using Photoshop CS6.
RGB PDF JPEG HIGH - PsCC - No Error.pdf
https://drive.google.com/uc?export=&confirm=no_antivirus&id=0B9lLW1Ml0 0iQc2ltUXhqVTRVaWs
CMYK PDF JPEG HIGH - 500x500px - PsCC - Acrobat drawing error.pdf
https://drive.google.com/uc?export=&confirm=no_antivirus&id=0B9lLW1Ml0 0iQZ3M2SS1PbEJuN0k
CMYK PDF JPEG HIGH - 2500x2500px - PsCC - Acrobat out of memory error.pdf
https://drive.google.com/uc?export=&confirm=no_antivirus&id=0B9lLW1Ml0 0iQd2dxWm9xWjk3bEEAnother observation for what it is worth (not a solution again). I was able to open all 3 PDFs in Irfanview as graphics. The properties of the image were
The major changes for the others within the JPegs was the number of pixels (133X133) and the size (1.4inX1.4in). There is also a reduction in the number of colors.
Just for information, I opened the big JPeg in Acrobat (9.5.5) and it opened fine. However, it looks like the color space was changed as shown below:
Even if I change the input to use CMYK and not RGB, it looks like it gets converted to RGB. I haven't spent time to figure out the preflight analysis properly, but at least this may give you some info back. -
Jpeg compression for tiff image (nt gettin a view of jpeg compressd pages)
Hi All,
I have a problem of jpeg compression inside a tiff file. When I convert no. of pages in a multi-page tiff file I m not getting a view of jpeg compressed pages. I convert black and white as well as gray scale jpeg images inside the tiff file. I used Compression Group4 for black and white image and JPEG compression for gray scale image. Also set the dpi of each page. But most of the viewer doesnt support my jpeg compressed pages. When I set the quality of jpeg images to 0.1f that time I m getting a view of particular images for some image viewer.
My requirement is to show the jpeg compressed image inside the IMAGING PREVIEW 2.5 VERSION. But it doesnt support for my output tiff. As well as cant get properties of that page inside the Fax viewer except Resolution 200x200 dpi.
If anybody has any idea to compressed jpeg image inside the tiff file, please tell me how I can compress the gray scale image using jpeg compression.
Thank you in advance
DipakHi Maxideon,
Thank u 4 ur immediate reply. But my requirement is, to show d tiff file only in IMAGING PREVIEW 2.5 VERSION. I tried lots but didnt manage to get a view of JPEG compressed page. I think somewhere I m doin wrong. Somewhere I wrote wrong code, cause d properties of jpeg compressd images also not getting in Fax Viewer except DPI. I change the BaselineTIFF Tags of JPEG compressed image, but cant manage output yet. I think d problem create at d time of metadata writing. My problem is tht, tiff created using sum other soft. is suppported by IMAGING PREVIEW 2.5 VERSION, y nt mine?
Here is my code for BaselineTIFFTagSet:
if(isBinaryImage) {
// resolution unit
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(296), 2));
// bit per sample
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(258), 1));
// compression
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(259), 4));
// rows per strip
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(278), bImageImage.getHeight()));
} else {
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(296), 2));
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(258), 8));
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(259), 7));
// thresholding
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(263), 3));
rootTiffIFD.addTIFFField(new TIFFField(base.getTag(278), bImageImage.getHeight()));
} If u have any idea 4 write a metadata of jpeg page wid jpeg compression, can u plz suggest me hw to write a metadata 4 jpeg image? Which Baseline Tags r needed to set d jpeg compression?
Thank you
-dipak
Maybe you are looking for
-
Questions on HTML5 Output in FrameMaker 12
I have a couple questions about the HTML5 Output: 1. I have images that are not appearing in the output (they are in the source FM file, but not in the HTML5 output). What am I doing wrong? 2. Is there a way to disable the glossary function so that i
-
Hi Everyone, How to get the current Fiscal Period from System Initialization->General Settings in a query The information is stored in OFPR table. But how do i know which is the current set Fiscal Period? Thanks, Vinoth
-
Hello friends I have little problem I create project with web service and now I need to add attachment to email email I create step by step with tutorial !!! so if anybody know HOWTO please send me any tip!!!
-
Upgrade to 10.4.7 causes severe display flicker
I am running a 15-inch MacBook Pro connected to a 23" cinema HD display. Since the upgrade to 10.4.7, the laptop screen starts to severely flicker after approximately 3-5 minute, rendering it unusable. Moving a window around (even on the 23") will ca
-
Please convert Final Cut 6 tutorials to XML version 3.
I have Final Cut Pro 5.1.4 running on my laptop and in a moment of madness I've just bought the Final Cut Pro 6 Apple Pro training series which includes 14 .fcp project files which obviously I can't open! Is anybody out there kind enough to open some