Urgent ! Speed and image size problem.

Dear Java Guru,
I have the speed caused by:
param.setCompression(TIFFEncodeParam.COMPRESSION_JPEG_TTN2);
If use:
param.setCompression(TIFFEncodeParam.COMPRESSION_DEFLATE);
It will be 6 times faster, but the image size is bigger.
But we need to keep the image size very small, say the COMPRESSION_JPEG_TTN2
allows the size to be 2714kb for 20 pages (Grayscale at 100dpi resolution). Is there a compression method that allows the image size to be 1500kb for 20 pages, yet at the time of encode, it is as fast as _DEFLATE method ?
Please help !!! our case is urgent
Thanks in advance.
Thinkwork.

Please help !!! our case is urgentIt always is, isn't it?

Similar Messages

  • Problem: codebase, jar and image reloading problem please help!

    Hi Java Gurus,
    I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
    <applet code="CameraApplet.class"
    archive="doorcam.jar"
         codebase = "webcam/classes"
         width="375" height="475">
    <param name="imagePath" value="http://judge/webcam/images">
    <param name="webCamImage" value="door.jpg">
    <param name="COMPort" value="COM2">
    <param name="frameRate" value="10"> <!-- could not exceed more than 10-->
    <param name="host" value="judge">
    </applet>
    The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
    I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
    If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
    private void refresh(final URL url) {
    Image webCamImage =getImage(url);
    webCamImage.flush(); // flush out the previous image
    webCamImage = getImage(url); // get a new image
    webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
    When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
    The problem is so strange that I could not find any way to solve it.
    It would be a great help to me if somebody provide me some work around to the problem.
    I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
    Thank you all very much in advance.
    best regards,
    Judge

    Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
    I think its the problem between IE browser and Java Plug-in.
    I which SUN would find these incompatibilities and solve these problems.
    I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
    I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
    I have seen so many people in the forums with all sorts of problems because of this.
    Right now I m desperately looking for work around to my problem.
    If somebody would provide me with the solution to my problem it would be a great help to me.
    thank you all so much.
    best regards,
    Judge

  • Hi there! So I am using Lightroom 3 on a pc and I have ran into an issue when exporting images. The DPI and image size (in inches) that I am selecting during the export process. For example I just exported a collection and set the dpi to 180 and the size

    Hi there! So I am using Lightroom 3 on a pc and I have ran into an issue when exporting images. The DPI and image size (in inches) that I am selecting during the export process. For example I just exported a collection and set the dpi to 180 and the size to 7 inches on the long edge. My exported result is 457 dpi and sized at 3200x2134 pixels.. Any ideas on why this is happening and what I can do to correct it?

    The DPI setting in a digital image has no meaning at all. You need to learn how to calculate what you need in your exported image. The only measurement in a digital image that has any meaning is the number of pixels in each direction. It doesn't matter what you set that DPI to (actually it's PPI or pixels per inch). The image will have the same number of pixels regardless of the setting. If you need an image that is 5 x 7" (for example) at 200 PPI then you would want an image that measured:
    5 x 200 = 1000 pixels
    7 x 200 = 1400 pixels
    So you would need an image that is 1000 x 1400 pixels to have a 5 x 7" image at 200 PPI. The reason your exported image had such a high PPI setting is because you specified the number of inches you wanted the image to be. And there were enough pixels in the image that it calculated out to be that high PPI setting.
    I apologize, I don't explain this very well. But you need to learn to do the math to determine how large you really want your exported images to be.

  • Drag and Drop and Image Size

    I need to be able to drag and drop images but I need them to be a certain size when I drag them out of an Aperture project. For various reasons, I don't want to use the export function. Only drag and drop will be efficient for the workflow that I"m planning. Problem is, the pixel dimension is not wide enough when I test it by pulling an image on to the desktop.
    My ultimate goal is drag them, sized and ready to go, and drop them onto a web browser upload page. I don't want to fumble with the extra steps of exporting them to another folder on the desktop and then upload the images from that folder to the browser.
    So does anybody know how or if it's possible to control the drag and drop SIZE /DIMENSION of an image?

    The drag and drop size is determined by your preview settings. What actually gets "dragged & dropped" is the preview, not the master file. You can control the quality and size of the preview in the Aperture preferences.

  • Aperture/Photoshop plug in and image size

    I'm having a problem I don't really understand.  I have Aperture 3 and I have CS5 that I'm trying to use as a plug-in for Aperture.  This is half an Aperture question and half a Photoshop one so I hope someone can answer it for me.
    In Photoshop I made an "action" that is a sort of raised beveled watermark for my photos. 
    I open one of my images in Aperture and "fix" it - soften the skin, blur the background (whatever...) then I go to the top menu item "Photos" and go down and pick "edit with Adobe CS5."  And my image opens in Photoshop.  I go to the menu and pick the watermark action but when it works my watermark can't really be "read" because it's not fitting on the photo, it's too big and falls off the edges.  The photo is 1241x1280 px.
    But here is the odd thing.  If I take that same photo, the very same size 1241x1280 and open it directly in photoshop, completely bypass Aperture, and run the watermark action, it's actually a bit small (but usable) it fits fine in the very same photo!  When I check the image size in Photoshop it is the same size (regardless of if I open in photoshop directly or go there from Aperture).
    So this problem only seems to happen when I edit the photo from Aperture.  I'm new to both Aperture and Photoshop (crazy to try and learn 2 programs at once) and I don't know if I can make just the watermark layer in photoshop smaller.  But again it fits fine if I apply it directly from Photoshop bypassing Aperture.
    Does anyone know why this happens and how I can make the watermark work?  Or can I make a watermark in Aperture?
    Thanks for any help,
    Susan

    susan-kelly wrote:
    Like I said when I rescale it they way you said to do in photoshop it changes the size and distorts it a bit.
    If you hold down the 'Shift + Option' keys while scaling, the text, shape or raster object will not distort and will resize from the center (AKA - maintain aspect ratio).
    I run the full version of PS, so am not sure if the commands are exactly the same if you are running PS Elements, but there is a command at 'Layer menu > Layer Style > Scale Effects..' which can be used for scaling the bevel settings to match the scaling of the watermark item.
    One exact way to do this in PS full version is to choose the Edit > Transform > Scale command and then use the option bar fields under the main menu bar to change the 'H' (Height) and 'W' (Width) percentages equally (to say 70% in each) and then use the aforementioned 'Layer........Scale Effects' command and enter 70% in that dialog. This should reduce the watermark and effects appropriately without distortion.
    Note - indeed both programs are very deep (especially PS), but that just gives you more fun to learn as you go. Don't worry about mastering either, just work within a structured workflow so you can take the steps at your own pace.
    Again, I am not sure what version of PS you are running, but the one book I suggest looking into more than any other is at the link below. It is somewhat dated, but the information is completely relevant and covers the general usage of Photoshop to make anyone comfortable with the tool set.
    http://www.amazon.com/Adobe-Photoshop-Unmasked-Science-Selections/dp/0321441206/ ref=sr_1_1?ie=UTF8&s=books&qid=1307824869&sr=8-1
    The companion website is still up and you can download all the images used in the book if you want to practice on the same images he outlines. Well worth a look if you want to learn Photoshop.

  • Image size problem

    I was editing a catalog, the pictures were full size, eg. 2270 x 1704.  Noticed on the 931th image and forward, the image sizes are small, eg. 580 X 440.  Also, when looking at the pics on the hard drive, the sizes of the pictures had changed from MB for the first 930 pictures to KB for the rest of the pictures.  2 Questions: 
    1.  How could this have happened?  The pictures were all downloaded from the camera (1 year ago) at the SAME time.  I do not remember changing any settings on the camera when the pictures were taken that would have impacted the image size.  This seems to have happened also on other occasions, ie. I get a mix of image sizes for some reason.
    2.  Now that it seems I have to live with the smaller images, will they be a problem if I want to enlarge them or show them on a large TV screen?

    The small images are only around 110K to 200 KB.

  • Image Size Problems when printing on Epson printers

    Hello all,
    Here's what I have- I am running Photoshop CS 5.1 on a new Mac Mini, using OS 10.6. I am up to date on all software updates for both the Mac OS and Adobe.
    As of two weeks ago, whenver I send an image to print on my Epson 4900 or Epson 4880 it prints much smaller than the intended size. For instance, I have an 11x17 piece of paper and it is printing an image that is roughly 6x9in, even though my image size is really 10x16. I know that I have the correct paper size. I even tried creating a custom paper size to no avail.
    After few weeks of trying to figure out the problem, I decided to install a copy of CS4 on the machine. CS4 is working properly and I have not had any resizing issues......That is until today....Now, my Epson 4880 is having the same problem printing as when I was going through CS5.1
    I trashed the preferences.....That didnt work either.
    Any thoughts?

    As of two weeks ago...
    What happened two weeks ago...?
    http://kb2.adobe.com/cps/875/cpsid_87512.html
    Try Epson's Advanced Product Support Center (I believe your 4880 qualifies for it)
    http://mechs.epson.com/service.taf?_UserReference=cgmkiwcrm

  • Changing resolution and image size doesn't change result on screen?

    I'm using Photoshop CS3. I am trying to change the resolution of several images that will be printed in a newspaper. So the current images are 72 ppi and really huge -- for example 36 x 27 inches (document size), and when I change them to 300 ppi, the image sizes shrink to about 8 x 6 inches, as I expect. But the image I see on the screen doesn't change. So, for example, when I open up the image originally, it's at 33% and the entire image is visible. After I change the resolution, and the image size has changed accordingly, the image still appears the same and it remains at 33%. Shouldn't the image shrink on the screen since its size has shrunk? Or if it remains the same on the screen, shouldn't the percentage shift? I mean if the document size is now 8 x 6, it should be able to be displayed at 100% and not fill my whole screen... I'm so confused. Thanks...

    gradded,
    The "Document Size" area of the Image Size dialog is just to indicate the size (in inches) that your document will be printed. The ppi adjustment has nothing to do with what is displayed on your monitor. Your monitor doesn't care anything about ppi. The monitor contains a certain number of pixels and after you change that ppi setting, the monitor will still have that same number of pixels.
    As long as you leave the "Resample Image" box unchecked, your image size (Pixel Dimensions) will not change. You will see no change on your monitor. If you check the "Resample Image" box, then your image size (in pixels) will change.
    Hope this helps.

  • Can you lock aspect ratio, define border and image size with automated BatchCropStraighten?

    Hello everybody,
    I need to crop and straighten a load of scanned rectangular stamps that will start as a single scanned image, and I want to lock the aspect ratio to 1:1, define the top border size (such that the the borders on the sides will be bigger than those top and bottom) and specify the output image size.
    Does anybody know if this is possible using the automates BatchCropStraighten function?
    Thanks,
    Paul

    paulsinyard wrote:
    Does anybody know if this is possible using the automates BatchCropStraighten function?
    I know of no BatchCropStraighten feature in Photoshop.  Photoshop has a Plugin CropPhotosAuto that you access through menu File>Automate>Crop and Straighten Photos.
    On my windows system its "C:\Program Files\Adobe\Adobe Photoshop CC 2014\Required\Plug-Ins\Automate\CropPhotosAuto.8li". This plug-in is designed to help you scan several image with a single scan. All the plug-in does is to look at the current active document looking for what appears to be a scanned image and to create an additional document that contain a straighten version of the image the size of the image. No files are created nothing is saved only one document is processed even if you had several scans open in Photoshop.  When the Plug-in ends the current active document is the last document the plugin created.
    You may be able to program a Photoshop script that would fit the create documents to some size then add canvas that would make all the documents have the same Aspect ratio and size. The borders added would be equally sizes on opposite sides top and bottom the same left and right the same.  However the image aspect ration inside the borders may vary.
    I created a fake scan with five simulated images. Not straight and not all rectangles  and duped the document so two would be open the used File>Automate>Crop and Straighten Photos when the process finished I spread out the document so you could see all that are open in this screen capture.

  • Premiere Pro CS4: Output Issue - codec and image size

    I am having an issue when outputing a video file from Prem Pro to Media Encoder.  The dimensions of the input video are the usual 720x576.  The output I need is 390x390 to match my project.  By choosing the Sorenson 3 video codec I am able to adjust the size from 720x576 to 390x390.  However, it also applies black bars to the top and bottom of the image.  I don't want this.  If I choose the DV PAL video codec the black bars are removed in the output but I do not have control over the image size.
    In Prem Pro 1.5 the media encoder allowed for this and I was able to create a cropped video image (390x390) without black bars.  By selecting the zoom option the image was fitted into the window size.  There is no zoom option in CS4 in Media Encoder.  This is very frustrating!
    Any help would be appreciated...
    Thanks, Neil

    This is odd indeed, and I cannot recall having read of such. The tips were just the general things that one normally checks out, when there are audio issues, so nothing specific to this behavior.
    Now, as a test, you might want to try ASIO4ALL, linked in the article above. Usually, it will get audio, where the Realtek, or Creative driver will not. Again, this is as a test, just to see if by-passing the Realtek driver will help. Do not forget to set the Audio Hardware ASIO to ASIO4ALL in Input and Output. Then test. If it has zero affect, then just uninstall it, and change the setting back.
    Good luck, and wish I had more to help,
    Hunt
    PS - other than mechanical/electrical things like the audio chip heating up and a connection failing, I just cannot think of something that would cause this behavior. Maybe download and run SpeedFan, a great little free utility, and monitor the temps for all components with sensors.

  • Texture:illegal image size problem with loading texture

    i have used the method of loading an texture into a scene as shown in chapter 7 of java 3d tutorials. My image size is of the power 2. But why am i still getting the illegal image size error, pleeeeaaaase help, i will be greatful for any suggestions thank you. i have pasted the source code for the method of loading a texture below
    Thank you
    BranchGroup scene= new BranchGroup();
    QuadArray plane = new QuadArray(4,GeometryArray.COORDINATES|GeometryArray.TEXTURE_COORDINATE_2);
    Point3f p = new Point3f();
    p.set(-1.0f,1.0f,0.0f);
    plane.setCoordinate(0,p);
    p.set(-1.0f,-1.0f,0.0f);
    plane.setCoordinate(1,p);
    p.set(1.0f,-1.0f,0.0f);
    plane.setCoordinate(2,p);
    p.set(1.0f,1.0f,0.0f);
    plane.setCoordinate(3,p);
    TexCoord2f q = new TexCoord2f();
    q.set(0.0f,1.0f);
    plane.setTextureCoordinate(0,0,q);
    q.set(0.0f,0.0f);
    plane.setTextureCoordinate(0,1,q);
    q.set(1.0f,0.0f);
    plane.setTextureCoordinate(0,2,q);
    q.set(1.0f,1.0f);
    plane.setTextureCoordinate(0,3,q);
    TextureLoader loader = new TextureLoader("C:\\Documents and Settings\\Ozcan\\Desktop\\Java 3d\\examples\\texture\\brick.GIF",this);
    ImageComponent2D image = loader.getImage();
    Texture2D texture = new Texture2D();
    texture.setImage(0,image);
    Appearance appearance = new Appearance();
    appearance.setTexture(texture);
    Shape3D shape = new Shape3D(plane,appearance);
    scene.addChild(shape);
    return scene;

    GridBagLayout will make arrangements to display the JPanel at the size its layout manager says that it needs. To help the JPanels layout manager we can let it know that we need extra space to show the rendered image.
    class tt extends JPanel{
        Image pic1;
        tt(){
        public void paintComponent(Graphics comp){
        public Dimension getPreferredSize() {
            return new Dimension(pic1.getWidth(this), pic1.getHeight(this));
    }

  • Very confused about ppi, resolution, and image size...

    I have read so much on these things and even posted along these lines here and there, but remain totally confused.
    Say the size of my pictures is around 2000 x 3000. Once I download them to PSE, the resolution is 72ppi. Is this default and could I/should I change this?
    I generally do four things with my pictures.
    First I edit them.
    Next I email to family members.
    Then I order prints (99% are 5x7 or smaller)
    Finally I store them (on computer with CD backup).
    Now, space is a bigger concern than quality since I print small prints generally. So what would be my best options for saving my files, but getting very nice prints?
    Right now, once I edit, I save my files in .jpg, baseline "optimized" at 72ppi. Only following the computer defaults though, not because I think this is best. Would I be better off saving in TIFF or is this not necessary?
    Any links with further info would be appreciated also.
    Thank you,
    Amy

    Amy,
    1. I just took a picture today, and when I look in Image>resize>image size the dimensions are as follows:
    W=2288px H=1712px W=31.778" H=23.778" @72px/in. resolution
    When I change resolution to 325 px/in., W=7.04" H=5.268"
    As the resolution is increased, the dimensions decrease. This is what is called an inverse relation.
    Why did I change to 325px/in? Because for printing it is desirable to have a resolution of 240-300 px/in, or so. Also, note that this resolution gives me almost a perfect 5x7 size format, and one can crop off the excess readily. If one desires 4x6 size, one can crop to that dimension.
    2. I enhance the pictures next, leaving sharpening for the last step
    3. I save primarily in PSD and/or JPEG. Both PSD and TIFF allow one to retain layers, are lossless, and thus one avoids degradation with sequential editing. JPEG is is a compression format which conserves disk space (in comparison to PSD and TIFF), and is most likely required for your e-mail and your photo finisher. I save some of the JPEG files. I usually elect baseline optimized, and the JPEG allows me to elect quality 8, which is good for my purpose and results in a manageable file size.
    4. Right after I download my picture files from the camera, I burn them to a CD (i.e. before I do anything else), and right after I finish the final edits I burn them to CD as well. This is my "film", if you will. If the computer fails or if I should accidentally delete a file from disk, I still have it available.
    I am sure that others will post, but that is my current work flow.
    Ken

  • Skinning and Image size for android devices

    I am building a mobile application for both Android and iOS devices. I am using images in 3 different resolutions sets.
    The images have been made in such a way that the complete all screens were first designed for 640x960 resolution with 320 dpi. Then I created 3 different sets of images where the images were reduced to 75% and 50% of the 640x960 image size. The images I have now work fine for iPhone 3GS and iPhone 4 and 4S devices. But the 75% one's don't work correctly. This is because the size of say background of view at 75% would be 720 pixels while the size of the Android device's screen is 854px or 800px.
    How can I address this issue?

    Any help on this?

  • Getting file header size and image size

    Hi all,
    Now that the AVI file type won't work for me, I have to do some of that functionality myself.
    I can use the function to Get File Size, and the size is returned in bytes, so far so good.
    I figured I could calculate the image size by taking the resolution, multiply X and Y, that gives me the number of pixels.
    Then multiply pixels by bit depth, to get the number of bits, divide by 8 for the number of bytes.
    Since bit depth is 8, the number of bytes will be exact (and the same as the number of pixels).
    When I did the math, and divided by the file size, it didn't come to a round number, and was a larger number than the number of images I could display.
    I figured there is probably additional information stored with each image, but I don't know how to adjust for that.
    There may be byte clustering happening, making each image larger than the actual byte count would indicate.
    And, there is probably file header info, but not sure where to get that.
    I looked through the IMAQ functions, and didn't see one about getting the image size (I did see the one that returns resolution, but I have that data already).
    Any suggestions on how I can calculate how many images are in my binary file?
    And, how to get the byte sizes I need to be able to set the file pointer correctly to get an image out of the middle of the file?
    Thank you for any suggestions,
    Jeff

    If I understand correctly You have binary file with multiple images inside and You want to extract that images?
    Depending on image type You can search by tags where image begins and ends: http://www.impulseadventure.com/photo/jpeg-decoder.html and extract.

  • Scanner And Image Capture Problem

    Hello All,
    I thought I would start a new thread since my first one was answered.  The old thread is at:  https://discussions.apple.com/message/17757734#17757734
    Well, I went a couple weeks ok with the Scanner and Image Capture.  And then kaput, it doesn't work.  I thought about it some and it seemed to stop working after I did Software Update on March 17th, 2012.  In that update was a "Digital Camera Raw 3.1.0" update.  Which makes me very suspicious.
    Here is the error I get when I open Image Capture:
    So, it recognizes the scanner but can't do anything in Image Capture or the with the scanner buttons.
    I ran Software Update again, just to see if there was a new updated scanner driver but nothing came up.
    Any ideas?  I really want to avoid using the manufacturer's SW drivers etc.
    Thanks in advance for the help!

    PAHU,
    I feel like a complete idiot.  It was exactly the lock button.  The last time I finished using it, I locked it.  I totally forgot about it and I never thought of that being the problem to check.
    I really appreciate your help and thanks to you, I'm back and scanning!
    DMerz

Maybe you are looking for

  • Data acquisition from SPCM-AQRH-15 and Nano-ViewTM 200-2/M

    I am trying to acquire data from APDs (PerkinElmer, SPCM-AQRH-15) and Nanopositioner (Mad City, Nano-ViewTM 200-2/M). The second equipment has USB 162 or 202 digital interface integrated but I am not sure abut the first one since I am still waiting m

  • 2013.03-4 archboot "2k13-R1" ISO hybrid images released

    Hi Arch community, Arch Linux (archboot creation tool) 2013.03-4, "2k13-R1" has been released. Homepage and for more information on archboot: http://wiki.archlinux.org/index.php/Archboot Summary: - major update/cleanup on all components Hybrid image

  • Sorting in Cross Tab

    Hi, We are using the Cross Tab component in Crystal Report XI and the cross tab have the sorting option as ascending, descending and specific order. The Sorting order will come from the query as an parameter, in that case how do we achieve the sort o

  • Need open REPORT from FORM in Oracle Apps with Parameters

    Hello All, I have a custom Form, which is running fine in stand alone by invoking the report from it. There is a code in behind the button which triggers to open the report having parameters. Here we used RUN_PRODUCT function to invoke the form. Now

  • Problem in after create  trigger

    hi all, i tried to track the creation of all objects in scott user. so from one dba user i wrote a After Create trigger for scott schema(schema level trigger) like this, create trigger create_log after create on scott.schema begin insert into create_