GIF to JPG always saving as CMYK
Hi,
I'm having very little luck trying to save a transparent GIF to a JPG.
Try executing the code below to pull the GIF image im testing with
and saving as a JPG. For me this image always ends up as a
CMYK JPG which my browser can't open but Photoshop can.
Any help would be appreciated.
Thanks
Kallen
public static void main(String args[]) throws Exception
BufferedImage image = ImageIO.read(new URL("http://mry-img002.catalogcity.com/lotr.gif").openStream());
ImageIO.write(image,"jpeg",new FileOutputStream("C:\\lotr.jpg"));
}
Thanks for all your help, but I eventually found the problem. You need to ColorConvert the BufferedImage that is read in to be RGB like so.
BufferedImage dst = new BufferedImage(src.getWidth(),src.getHeight(),BufferedImage.TYPE_INT_RGB);
ColorConvertOp xformOp=new ColorConvertOp(null);
xformOp.filter(src,dst);
Similar Messages
-
I am getting errors upon use of JPG images, saved from Photoshop, in Encore.
How do I use Photoshop JPG images in Encore without errors?
When using camera jpg images, saved by Photoshop (either save, or image manipulation like autocolor then save, no other Photoshop options were tested), Encore will either :
1) generate an image import error: "The software that's used to decode the media is not available on this system. Installing the correct decoders for the files you are working with may help to correct the problem." and be unable to import the image,
2) Image import stops before completion (Encore stops responding and must be Closed by Windows Task Manager), or
3) with a number of images imported, upon attempts to create a Slideshow, Slideshow creation will stop while in progress, and Encore does not respond (Encore must be Closed by Windows Task Manager).
Import and Slideshow creation using untouched camera images is nominal and uneventful.
Import and Slideshow creation using PhotoShop(64bit) GIF (copy) images is nominal and uneventful.The common cause of this issue is still image files where the pixel size is too large. This warranted its own help page, which is now a dead link.
http://helpx.adobe.com/encore/kb/error-software-used-decode-media.html
But I assume the pixel size is the same whether you are processing them in Photoshop or not. but the main point is that the underlying problem is not about decoders. Encore encounters a problems dealing with the file and throws the only error it (apparently) has. So you are looking for anything like that: pixel size, changes between rgb and cmyk, extra metadata in files. Maybe even filename oddities (length, special characters).
I would look in part at what versions you are using and compatibility settings.
I would save them as png or psd. -
Some GIFs and JPGs appearing with yellow "wash" when loading in Safari
Hi,
I've flicked through forums, google, and called my top graphics people but nobody can seem to help, or has ever even heard of, my issue.
Here it is in a nutshell:
Some GIFs and JPGs appear with a yellow "wash" when being loaded in Safari. I can confirm this is happening on 3 different Macs, and even on a PC running Safari.
Safari 3.1.1 on Windows XP
Safari 3.1.2 on Mac OSX 10.5.5
Here's some examples of it occurring:
http://staging.tomatosource.com.au/test/bad.jpg
http://staging.tomatosource.com.au/test/bad.gif
You might need to refresh the page in Safari a couple of times to see the flicker but it's there.
I've tried:
- resaving images with and without "progressive" and "interlaced"
- a variety of different colour palettes
- taking a screenshot of the image, putting back into Photoshop and resaving
Has anybody seen this issue before? Unfortunately I can't go live with this site until I fix this very strange error.
Any comments would be greatly appreciated!
Cheers,
Jase.Totally independently from your current problem, Safari is cr@p. Dump it.
All Apple applications, from the Finder through Preview and iPhoto to Safari, assign Monitor RGB to ALL untagged images, even if they were created or saved in sRGB.
The only current properly color-managed web browser is Firefox 3.0.1. Just keep in mind that you have to enable color management deep inside the guts of Firefox.
See this existing thread in the Adobe Photography forum:
Ramón G Castañeda, "Beware of using Adobe Web Galleries" #49, 14 Sep 2008 4:52 pm -
How can I load a gif or jpg in a JFrame (background)
I wanna load a gif or jpg image as a background at a JFrame. How can do this?
ThanksI have tried that but my image always paints over the swing components. Could you give more a code snippet?
-
Creating a .gif or .jpg File
I have written an eBook and am sending it for eBook publication and sale.
One of the items required in the process before uploading the eBook is to provide:
A. An image of the book cover. That image is now in Pages format and it contains text and a line art image. I need to convert that cover page to a .gif or .jpg format. How can I do this?
B. The process also requires me to create 'Banners' of varying size. How do I create a Banner? All the material [text and art] are contained in the existing Pages document.
Thank you,
Leo
<Edited by Moderator>Leo Gendernalik1 wrote:
I have written an eBook and am sending it for eBook publication and sale.
One of the items required in the process before uploading the eBook is to provide:
A. An image of the book cover. That image is now in Pages format and it contains text and a line art image. I need to convert that cover page to a .gif or .jpg format. How can I do this?
As far as I know, the only way to get a gif or jpg would be to make a screenshot.
Maybe a PDF may fit your needs. If it does use the Print to PDF tool and print the 1st page.
B. The process also requires me to create 'Banners' of varying size. How do I create a Banner? All the material [text and art] are contained in the existing Pages document.
You may open a blank Numbers document and remove every table.
You will get a huge blank surface which may be more than one meter in width.
Copy objects from Pages and paste then on the Numbers sheet.
Yvan KOENIG (from FRANCE samedi 14 juin 2008 21:25:00) -
Because our IT system can only handle PDFs with versions up to 1.4, we need to "PDF from scanner" feature to store the scanned PDFs in version 1.4.
Acrobat 9 always saved it in 1.4, but starting with Acrobat X, the PDFs are saved in 1.5.
There must be a setting or configuration somewhere where I can change this.
I already tried modifying the distiller's standard joboptions, but that did not work.
Thanks for any helpWe use in our software an open-source pdf library that only supports pdf versions up to 1.4. I know it is old, but it's not that simple to exchange it.
But I just had a look into the Actions as you suggested. This way I get it to work. It costs one additional click, so that's acceptable.
Thanks for the support. -
Is it possible when saving the psd file to have an automatic jpg file saved at the same time?
My work involves preparing images for printing lightboxes and window installations. My clients require to pre-approve the photos before printing.
I usually save my files as psd but since the files are very large in this format I usually save another copy as a jpg file that has a much smaller file size. This makes it possible for me to add these to a presentation and and send them to my client.
Is it possible when saving the psd file to have an automatic jpg file saved at the same time? Or do I still have to do this manually?If you save the document manually as a PSD file in Phtoshop not from within an Action, Script, Plugin or Droplette. You may be able to write a Photoshop that would do as save as Jpeg, And you should be able trigger its execution by setting up a Script Save event using the Script event manager. When You do a manual save the script should be triggered. I wrote may be able to for I have never tried to write that script or set up a Script Manager Save event. I have only use open events.
-
I list books on Amazon when on IE my condition notes were always saved & I could pick any one but when using firefox they not saved how can I fix this?
Clear the cache and the cookies from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
Make sure that you aren't blocking cookies.
*http://kb.mozillazine.org/Cookies
*https://support.mozilla.org/kb/Deleting+cookies
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
who can give me the website about gif and jpg format?
thanks guy.This is a crosspost.
Chances are that you won't get a resonable response when you do that. Try reading How to Ask Questions the Smart Way. That will give you plenty of pointers on getting reasonable responses.
The response in your other post is a literal answer to you question, google is your friend.
For a direct answer, here's the the Jpeg FAQ. If what you are actualling requesting is "how do I use images in Java" take a look at the ImageIcon class, the javax.imageio package and search this forum for examples. You could also check the How to use Icons in the Java Tutorial. -
I have a pdf file 50 pages and want add to 1st page a logo (icon png or gif or jpg), well I have cs4 master collection... how do it?
what is "pinch"? what cs4 program(s)
to use for this? -
Having problems in sending email..always saved in outbox and cannot send bcoz of server failed
The email server you are using to send mail through requires the password, if any is required it needs to be set in the location that I pointed out in the earlier post.
It is usually the same password you use for receiving emails.
I don't use either Facebook or Twitter so I am not sure how to help with those. -
How can I invalidate everything except .gif and .jpg
Hi
I need to invalidate every page except the static objects as gif jpg. Can I create a rule that invalidates everything except gif and jpg.
Thankscurrently webcache invalidation does not have the expressive power to describe "anything but".
however, you can give a list of rules in single invalidation message, each matching one type of pages, such as under particular directory, and with fixed suffix. and the whole list of criteria effectively achieves "anything but". -
I have a weird problem with some GIF and JPG images which I
use in a RoboHelp project. They appear to get damaged, but I nor
anyone else changes them. The bottom part becomes scrambled or
entirely black. The strange thing is that when I put the project on
my local hard disk, nothing happens, but when they are on the
server (with RAID disk sytem), then trouble begins.
Until now, nobody else who's wordking on the server reported
damaged files, so it seems that I'm the only one so far.
The trouble began on Sept. 11. Some projects I worked on
since that day have problem files. Most projects are RoboHelp, but
there's also a Word-project involved with a damaged JPG-file.
Anyone?Hi Peter
I've indeed already experienced that some RoboHelp projects,
mainly large onces, are better run on the local hard disk.
But this is a different problem I think. The project is run
locally, which goes well, but when I copy it to the server disk for
backup reasons, then some GIF-files get damaged after a while,
while nobody opens the project on the server. When I copy the same
files to another server's disk, then the files do not get damaged.
I also have a Word project that has a JPG file that has got
damaged. -
How to get animated gifs or jpgs to work
thanks for reading!
how do you get animated gifs or jpgs to work in iweb? i have a few that i made and worked when i had the old site up. but under iweb they wont, if you go to
my site use my username as the domain. www.myusername.com you will see a open 24hr sign that s animated but wont work in iweb, also thier is a little gif of a radio at the buttom the dials move and the numbers change, under i web they dont work why?
thank for reading thisNot sure exactly what is happening over there on your end. Animated GIFs can be drag and dropped into iWeb, no problem. Inside iWeb when you drop them onto your page, YOU WILL NOT SEE THEM ANIMATE. You may even see them show up with a QT controller bar underneath them. But don't worry....once you publish your page, the GIF will be animated and the controller bar will disappear. Just try it!
-
GIF/JPEG Images Always Open As "Locked"
Hey,
When I open up my images of JPEG/GIFs as "Locked". PNG image types are fine and aren't locked on opening but I really don't know why my JPEG and GIF's are always locked.
I can fix it by just duplicating it on the JPEG files, allowing me to make changes to my image but on GIFs it wont even let me duplicate.
Anyone know what is going wrong?
HattonI think what your seeing is normal for file formats that don't support layers.
For jpegs, just double clicking on the background layer thumbnail in the
layers panel and clicking ok in dialog that appears should unlock the layer.
Instead of doing that, i usually drag the background layer to the new layer icon
at the bottom of the layers panel. This creates a background copy that you
can work on and should be unlocked.
Your gifs are probably in the Index color mode (says Index beside the layer thumbnail)
To unlock gifs go to Image>Mode>RGB.
MTSTUNER
Maybe you are looking for
-
Values from a jsp page are null in an Action class
hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values received are null. Here is a part of code: the jsp file: letter.jsp <form target="_self" action="/Test/
-
When we run the MRP schedule lines are not generated automatically.
Hi, In MD04 requirement date is on 5.12.2009.My source list validity starts from 1.12.2008 onwards.When i run the MRP for the material system generates the Purchase requisition instead of the schedlue lines.When i change the source list validity as 2
-
How do I get my iPod touch 5 out of recovery mode without deleting everything?
So I tried to update IOS 8 today, but it made me update the other one-"IOS 7.1.2" so I did. Then my iPod shut off and went to the screen that says plug into iTunes. I plugged it into iTunes and it said that it was in "Recovery Mode" and that it could
-
Crop marks using indesign CS4 with Epson 3800 Mac 10.5.7
My crop marks and pages are printing larger than my document sizes. My paper size is 13x19, so I should have crop marks at the exact corners of the page sizes. But indesign is printing the entire document larger. So my document which is 11x14.75 i
-
XA transaction using weblogic.jdbc.oci.xa.XADataSource
Hi everyone, I am trying to execute XA transaction using the driver XA compatible driver weblogic.jdbc.oci.xa.XADataSource. I have added c:\bea7.0SP4 \weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll in the PATH in my weblogic managed server