Creating GIF or JPEG files
Is it possible to render a graphic object into a GIF or JPEG file and save it in a Java application?
Thanks.
Pradeep Gupta
518-383-1167
[email protected]
For JPEG:
1) Try JAI (http://java.sun.com/products/java-media/jai/) or the Java Image I/O from JDK 1.4.
2) Try PJA (www.eteks.com)
There is a pitfall if you want to do imaging in a Unix/Linux machine and the Java program can not access a X Server (maybe the machine is not running X). In this case you must install a "fake X Server", or use PJA.
For GIF:
Due to LZW patent problems with GIF compression the packages that generate GIF files have(had) to get a Unisys license.
Similar Messages
-
Hello. May I ask: I am using Acrobat 6.0.2, and having trouble formatting a PDF created from multiple (jpeg) files. Each page is formatted to A4 size, portrait. But when I create the PDF, each sheet appears as tiny, in the middle of a huge white page. I cannot seem to find any controls to adjust this. Any advice appreciated.
Thanks CtDave, for the further info. Unfortunately, those suggestions are not working, which is strange.
....Until last week, I used to make multi-page PDFs straight from Photoshop: File > Automate > Make PDF. One simply choses the files, orders them, and creates a PDF. (Resolution doesn't matter; 300 DPI is no problem.) However, my new Photoshop CS5 does not have the option in Automate.
What I've done, seeing as Acrobat is letting me down, is use Bridge (new to me) to create the PDF. It worked without a problem, but seems like more work than the old PS method. I will download a newer version of Acrobat to see if that makes any difference.
.....Also, thanks Test Screen Name: I agree with you that jpeg is irrelevant, and that one can make a PDF from Photoshop (Print > Save As - pdf). But that only works for SINGLE PAGE pdf, not multiple pages as far as I can tell.
Kind regards,
Prince Nuada -
Transferring gif and jpeg files to FCP
I was wondering why even though I have really high resolution files, pics, etc, when imported to fcp the files look pixelated and low quality. Ideas?
Several reasons including Not rendered ( full or preview ) or not viewing on an external broadcast monitor, instead your laptop screen. add a drop shadow to it and it'll pop. Gif are usually a lower rez to begin with, stick with jpegs or psd files.
HTH
Larry
editing on FCP since version 1.1 -
Hi,
I am having a .gif file which consists of vi code. I want to convert that .gif file into vi & complile it. I am using LV 6.1 & 7 express. Is is possible?
Reverse is surely possible like we can convert the vi diagram into .gif/.bmp file? But above i dont know?
Your help will really appreciated.
Best Regards,
NirmalIf I understand your desire, it's to be able to convert a graphical image (bit map or screen photo, for example) into a functional block of LabView code, with all of the wire work done, etc. This is a task approximately equivalent to performing optical character recognition.
In the case of a non-system subvi, unless that subvi is loaded, so that it's graphical representation can be recognized by comparing the bit-map image for the subvi on the photo with the available vi's.
Another difficult problem to solve is when the bit-map has been scaled up or down, such that there's a pixel count mismatch between the VI iconic bitmap and the photographic bitmap you wish to import into your code diagram.
And if you try to do recognition on objects that have h
ad their RGB color representations changed, as can happen when JPG compression or other compression forms are used that reduce to total number of colors saved, that challenges the object recognition further.
Also, what you're interested in having is only of value to Labview programmers, so there's not a very large market for such a tool to be sold to - unlike bitmaps of scanned text to ASCII or wordprocessor applications - traditional OCR software.
All this ins't to say it can't be done, but that it's difficult, and for the person or company that undertakes it, the sales potential is limited.
Regards,
Bob Donnell -
Creating JPEG file from .MOV video
How do I (or can I) create a "snapshot" JPEG file of a paused .MOV video file using Quicktime? Thanks for you help!
The free version of QuickTime will allow you to take a .bmp picture of the current frame. Just do "Edit" then "Copy" and you'll be able to paste this .bmp file into any program that will take it.
If you paste it into Paint (Start, Programs, Accessories, Paint) then you can choose File -> Save As... and choose .jpg or any other supported format as your type. -
Self-replicating PDF and jpeg files in my Library Mail folder--help!
I've been to the Genius bar twice, just wiped my computer clean--and still my computer self-replicates PDF, documents, gif and jpeg files that exist on my hard drive in the Library-Mail folder every time I open the Mail program! The same ones, over and over--to the tune of about a half a gig of space every two days!
I haven't seen anything on the Internet that relates to this specific issue--and at the Apple store, they had no idea how to help me.
HELP?
Thank you!Scott (et al),
Please look in your Library folder (in your HOME folder) for a "Mail Downloads" folder. If it exists, drag it out to your Desktop, then replace it with a new folder of the same name. To be clear, you will drag the current "Mail Downloads" folder to your Desktop, then you will create a new folder in your Library folder. You will name the new folder "Mail Downloads."
If the folder does not exist in your Library folder, create it yourself. Create a new folder in your Library folder, then name it "Mail Downloads."
Try whatever is applicable to you, then test for the creation of these duplicate files in your "Mail" folder.
Scott -
Need help exporting thumbnails (jpeg files are empty)
Hello,
I'm having problems loading photos from my thumbnails in iPhoto. If I try to load a photo nothing happens, even after several minutes. My library has around 500 images, so I can't imagine it would take very long to load.
If I try to export a photo it just creates an empty jpeg file. I can get data on the photo (ie size, width, height) from inside iPhoto, but the actual jpeg file appears empty. So, is there anyway to export just the thumbnail? I'd rather have a smaller image of the original than nothing at all.
Regards,
Rob
Powerbook G4 Mac OS X (10.3.9) iPhoto 5.0.4however, during this process I got the following error message for many of the photos:
The following files could not be imported (they may be an unrecognized file type or the files may not contain data).
Hello Rob,
this message means that you have this image in your library already, it prevents from duplicate.
The simplest way I found to solve this type of issue is to choose a picture that does not show up, but were you can see the thumbnail. Check the name (so called tittle) of the picture in iPhoto via info and find it on the drive via finder "apple-F" key combination (or menu edit/find/find).
1 - you find it under your iPhoto Library tree folder
1-1 - try to find out if folders names (iPhoto Library/2006/07/10/...which means : iPhoto Library/"year"/"month"/"day") has been changed. If no change has been done with finder, drag (do not copy) this pict out on desktop or other folder you can use, then drag it back in iPhoto window (not in finder folder), it should go back in the correct folder under iPhoto Library and show up again in full size.
check it first for several picts, if you find that all your picts are with the same problem you can consider taking all your picts out with finder and drag them back in iPhoto window
1-2 - you could also consider to repair your library by starting iPhoto holding down command-apple keys, but I have never tried it.
2 - your pict is NOT in iPhoto Library folder BUT on your drive, drag it back in iPhoto window, not in finder folder directly. It should show up in the correct location in iPhoto. You may have 2 thumbnails with same name in iPhoto window, just delete the one where you can't see full size pict.
this is unlikely to be the case from my point of view
3- your pict is not anymore on your drive... Somebody must have erased it directly from folder, meaning messing up directly in iPhoto library folder. Then check again 1-1.
this is unlikely to be the case from my point of view
You see the thumbnails because iPhoto it is a database that create thumbnails when importing pict, and they will last until you delete your pict within iPhoto. iPhoto refreshes it's database at that time. By doing things directly under finder just does not allow iPhoto database to be "aware" of what you are doing... so it cannot refresh it correctly. Then it messes up the complete stuff.
Hope this can help you, if not please post back an answer,
Best regards,
François
G4 PCI 400 Mac OS X (10.3.9) 704Mb, 10-40-80Gb, Dual display ATI9200, BT, DVR07 -
How to convert images to gif/jpeg files
I have created images in java. Now i want to convert this image into a gif/jpeg file so that i can save this gif/jpeg file in one particular folder on the system & also show the same file to the user.
use
javax.imageio.ImageIO.write
for an introduction see:
http://java.sun.com/products/jfc/tsc/articles/javaOne2001/600/ -
Animated GIF file Creation from no of JPEG files
Does anybody know the program to convert a many JPEG files to a single animated gif file.
Oh? And when did you ever say that? Perhaps you should provide clear questions and requirements.
[http://www.google.com/search?q=animated+gif+java|http://www.google.com/search?q=animated+gif+java]
Still, learn how to use Google. -
Can not open JPEG files and can not create JPEG files from other software
Can not open JPEG files and can not create JPEG files from other software (For example from Solidworks).
When I try to right click on a JPEG, a notice window appears written: "Windows Explorer has stopped working - Windows is
checking for a solution to the problem" and then the notice box disapears, the desktop appears and I can continue working.
From the other side - If I try to save as JPEG a screen of Solidworks (like a view of a part) the Solidworks falls but the JPEG
is created (I can see its name in the directory I created it).
I can open the JPEGS with the Paint software if I want but not with the Windows Photo Viewer.
I have the feeling that the Windows Photo Viewer disapeared from my computer - just a feeling.
I will appreciate your assistance.
Avi T. 2014Hi,
Did Windows Photo Viewer option appear when you right click the JPEG file and select open with?
I would like suggest you use Clean Boot to troubleshoot if there is third-party software conflict:
How to perform a clean boot in Windows
http://support.microsoft.com/kb/929135
Karen Hu
TechNet Community Support -
Hi Folks,
I have created 9 jpeg files out of MS Powerpoint which I exported into a slideshow.
When exporting this slideshow, it wants to ceate a file of 1,2GB whilst the jpeg files are all around 97kb in size.
What could the problem be and how do I sort this out?
Kindest regardsWhen exporting the slidehow out of iPhoto what size are you selecting for import, what size ration is selected in the slideshow's Settings pane, how many slides, what pixel dimensions are they have and what theme are you using?
OT -
Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.
Could it be something i have done in my settings?
or when i am saving the file to JPEG?Basically you're approaching this the wrong way around. What you need is the extreme sections to be quieter, not louder. The problem with moving the lower end of the audio is that you'll move the noise floor too, and get what's generally referred to as a 'pumping' effect. So what you do is to use a compressor to tame the peaks, and leave the lower level sound alone. When you've done that, you amplify (or normalize to a level you can determine) the whole signal. So the noise floor will be higher, but constant and not pumping. 'Match Volume' is a completely different tool for setting the overall levels of different tracks so that they sound approximately the same - it doesn't even begin to do what you want.
If it's music you are treating, then I'd almost certainly use the multiband compressor, because you get less artefacts with this. You need to experiment with the threshold levels, and almost certainly not use a massive compression ratio - 3:1 or 4:1 should be sufficient (although it's hard to tell without actually hearing the audio). You can tell what it's doing at any given point because the downward meter indicates how hard it's working. In theory you can apply make-up gain with it as well, but personally I leave that until everything's treated and use the 'Normalize' tool to set an absolute max level. -
How do I convert file to gif, jpg, jpeg, png, bmp, or swf
I mad a page in COMIC LIFE. I saved it, then when i went on photobucket.com, it gave me a message saying
The file "" does not have a valid image extension.
Valid image extensions are: gif, jpg, jpeg, png, bmp, swf.
HOW DO I CHANGE IT?
ThanksI have never used Comic Life, so I can't tell you how to do it from there. But you could open it in Preview. Control-click the page in the Finder and choose Open with... set it to Preview. Once in Preview, do a Save As and change the Format there.
-
Converting Tif file to GIF or JPEG
Could you provide me with an example to convert a TIF file to GIF or JPEG with the JIMI or tell me of a good link where I can learn how to do this?. I downloaded the JIMI library but I cannot find documentation or a clear example to carry out this conversion.
Do you know how the JIMI converts multi-paged TIF files into several JPEG or GIG files? The Jimireader could read only the first page of a TIF file. But I could not get the other pages of the TIF file. The code that I wrote to extract the first page was:
try {
JimiReader reader= Jimi.createJimiReader"C:/MRFleSto/4.tif");
i = reader.getNumberOfImages();
java.awt.Image img = reader.getImage();
.... more code to put the image in a call to convert it
reader.close();
} catch(Exception e){}
It turns out that i (the number of images) returns -1; never the total number of pages in the file. Also the getNextImage method of the JimiReader is "protected" (that is, removed from the class) and cannot be used. -
SAVING gif & jpeg files in differ graphic titles
SAVING gif & jpeg files in differ graphic titles appear
presave settings... what are ?
gif
===
Row Order: Normal or Interlaced
jpeg
====
Format Options: Baseline-Standard or Baseline-Optimized or
Progressiveelse if(fileName.endsWith(".jpg") || fileName.endsWith(".jpeg") || fileName.endsWith(".gif")) {
response.setContentType("text/html");
}You're forcing images to use contenttype text/html instead of binary image.
This is a weak control though. Rather use URLConnection#guessContentTypeFromName() to retrieve the contenttype.
Also see the following articles for ImageServlet and FileServlet examples to get some new insights:
http://balusc.xs4all.nl/srv/dev-jep-img.html
http://balusc.xs4all.nl/srv/dev-jep-fil.html
Maybe you are looking for
-
How to change the format in sap script
Hi, I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.
-
just upgraded from the Audigy 4 non pro to a XFI XtremeMusic cleaned all the drivers out with driver cleaner pro, even went as far as a format and clean install?the XFI card sounds great with music and gaming is amazing.. the problem I am having is w
-
I've burnt a slideshow of my photos on my Apple Mac to a DVD+REW disc but it will not play on my DVD player or on a combined DVD/TV. However it will play on my wife's Acer laptop. I then erased the disc & burned another slideshow from my ancient Dell
-
ABAP or JAVA edition of the sneak preview sap netweaver ??
Hi we want to install a local enviroment to test sap netweaver, in particular, sap portals. We have seen that there are two edition and I have some questions: 1.-What's the diference between the ABAP and JAVA edition of the sneak preview sap netweav
-
Simple (File-XI-File)scenario
Hi, I am going through Venkat Donela's simpe (File-XI-File)scenario Part1 and part2. /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 https://www.sdn.sap.com/irj/sdn/weblogs?