How to save my project to JPEG format or any picture format?
Hi
I just finish all my edit and possible to convert to JPEG or any picture format? Because i used Illustrator to edit my picture.
File --> Export.
Mylenium
Similar Messages
-
How to save in GIF or JPEG format?
I make a drawing using Graphics objects and now i want to save it to a GIF or JPEG or BMP file.
How to go about it?
TIA
NaveenHi,
Here is some code that may help.
NOTES: pixels were recieved from a PixelGrabber proccess.
transColor was picked from an image (you can supply your own code its just an int).
blnTrans is a boolean flag indicating that a transparaent color was picked.
dim is the dimensions of the image (any image will do).
import javax.swing.*;
import javax.media.jai.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import com.sun.image.codec.jpeg.*;
import com.sun.media.jai.codec.ImageCodec;
import com.sun.media.jai.codec.ImageEncoder;
import com.sun.media.jai.codec.PNGEncodeParam;
import com.sun.media.jai.codec.BMPEncodeParam;
import com.sun.media.jai.codec.TIFFEncodeParam;
import java.awt.image.*;
import java.awt.color.*;
import Acme.JPM.Encoders.*;
//Some more Code
int fileType = 0;
File file = null;
if (pixels != null)
//create a file save dialog.
//create a File Chooser.
fc = new JFileChooser(););
int returnValue = fc.showSaveDialog(this);
//detemine the choose.
if (returnValue == JFileChooser.APPROVE_OPTION)
file = fc.getSelectedFile();
//get the file ext and translate for switch.
Utils ut = new Utils();
String ext = ut.getExtension(file);
if (ext.equals("gif"))
fileType = 0;
else if (ext.equals("jpg"))
fileType = 1;
else if (ext.equals("png"))
fileType = 2;
else if (ext.equals("tif"))
fileType = 3;
else if (ext.equals("bmp"))
fileType = 4;
switch (fileType)
case 0:
if (blnTrans)
NewImageProducer img = new NewImageProducer(pixels, TransColor, dim);
try
FileOutputStream fos1 = new FileOutputStream(file);
Acme.JPM.Encoders.ImageEncoder e = new GifEncoder(img, fos1);
e.encode();
fos1.close();
catch (java.io.IOException e) {}
else
BufferedImage imb = new BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_INT_RGB);
imb.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
try
FileOutputStream fos2 = new FileOutputStream(file);
Acme.JPM.Encoders.ImageEncoder e = new GifEncoder(imb, fos2);
e.encode();
fos2.close();
catch (java.io.IOException e) {}
catch (Exception er) {}
break;
case 1:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_INT_RGB);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a JPEG
FileOutputStream fos3 = new FileOutputStream(file);
JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(fos3);
jpeg.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
case 2:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_INT_RGB);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a PNG
FileOutputStream fos3 = new FileOutputStream(file);
PNGEncodeParam pp = PNGEncodeParam.getDefaultEncodeParam(bimg);
ImageEncoder png = ImageCodec.createImageEncoder("PNG", fos3, pp);
png.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
case 3:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a TIF
FileOutputStream fos3 = new FileOutputStream(file);
TIFFEncodeParam tp = new TIFFEncodeParam();
ImageEncoder tif = ImageCodec.createImageEncoder("TIFF", fos3, tp);
tif.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
case 4:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_3BYTE_BGR);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a BMP
FileOutputStream fos3 = new FileOutputStream(file);
BMPEncodeParam bp = new BMPEncodeParam();
ImageEncoder png = ImageCodec.createImageEncoder("BMP", fos3, bp);
png.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
} //end of switch.
} //end of file option.
//Here is NewImageProducer
import java.awt.image.*;
import java.util.*;
import java.awt.*;
import java.applet.*;
import java.awt.color.*;
class NewImageProducer implements ImageProducer{
private Vector vector = null;
int[] pixels;
int alpha;
Dimension dim;
public NewImageProducer(int[] pixels, int alpha, Dimension dim){
vector = new Vector();
this.pixels = pixels;
this.alpha = alpha;
this.dim = dim;
public void addConsumer(ImageConsumer ic){
if (isConsumer(ic) == false)
vector.addElement(ic);
public void removeConsumer(ImageConsumer ic){
if (isConsumer(ic) == true)
vector.removeElement(ic);
public boolean isConsumer(ImageConsumer ic){
return vector.indexOf(ic) > -1;
public void startProduction(ImageConsumer ic){
addConsumer(ic);
int x = (int)dim.getWidth();
int y = (int)dim.getHeight();
Hashtable ht = new Hashtable();
byte[] r = new byte[pixels.length];
byte[] g = new byte[pixels.length];
byte[] b = new byte[pixels.length];
byte[] a = new byte[pixels.length];
for (int i=0; i<pixels.length; i++)
if (pixels[i] == alpha)
a[i] = (byte)0;
else
a[i] = (byte)255;
for (int i=0; i<pixels.length; i++)
r[i] = (byte)((pixels[i] & 0xFF0000) >> 16);
g[i] = (byte)((pixels[i] & 0x00FF00) >> 8);
b[i] = (byte)(pixels[i] & 0x0000FF);
ColorModel cm=null;
try{
cm = new IndexColorModel(8, pixels.length, r, g, b, a);
catch (Exception e){e.printStackTrace();}
Vector v = (Vector)vector.clone();
Enumeration e = v.elements();
while (e.hasMoreElements()){
ic = (ImageConsumer)e.nextElement();
ic.setColorModel(cm);
ic.setDimensions(x, y);
ic.setProperties(ht);
ic.setHints(ImageConsumer.RANDOMPIXELORDER);
int[] p = new int[pixels.length];
for (int i=0; i<pixels.length; i++)
p[i] = i;
ic.setPixels(0, 0, x, y, cm, p, 0, x);
ic.imageComplete(ImageConsumer.STATICIMAGEDONE);
public void requestTopDownLeftRightResend(
ImageConsumer ic){;
//Here is Utils
import java.io.File;
public class Utils {
public final static String jpeg = "jpeg";
public final static String jpg = "jpg";
public final static String gif = "gif";
public final static String tiff = "tiff";
public final static String tif = "tif";
public final static String png = "png";
public final static String bmp = "bmp";
* Get the extension of a file.
public static String getExtension(File f) {
String ext = null;
String s = f.getName();
int i = s.lastIndexOf('.');
if (i > 0 && i < s.length() - 1) {
ext = s.substring(i+1).toLowerCase();
return ext;
Get the Acme class at:
http://www.acme.com/java/software/Package-Acme.JPM.html -
How do I save my video in jpeg format so I can add picture to it and burn a DVD through Photo Explosion version 4
LRP
Thanks for the follow up.
In Premiere Elements 13/13.1, your export choices are in the Publish+Share section of the project. There are several choices and sub-choices.
Example: Publish+Share/Computer/and then a list of choices under that, such as, MPEG, AVI, AVCHD, XAVC-S, Windows Media, QuickTime, Image, Audio.
And each has Presets which define the export settings. Adobe offers default settings which are usually optimized ones. But, it also allows you to customize the preset selected. You do that by clicking on the Advanced Button of the selected preset and customizing the settings under the Video Tab, Audio Tab, and, if applicable, Multiplexer Tab.
From what you wrote, I thought that you might be asking about exporting a video with a video codec = Photo JPEG.
To do that you would to to
Publish+Share
Computer
QuickTime
with Presets = either the one for 4:3 of 16:9 as appropriate for your project,
and then clicking on the Advanced Button, and then the Video Tab under the Advanced Button.
Then selecting Photo JPEG for the video codec field.
Tip: The QuickTime choice is not seen unless you scroll down the list of Computer choices. Use the thin scroll bar to the right of the Computer choices.
Please explore Premiere Elements 13/13.1's Publish+Share/Disc/DVD with standard or widescreen preset for your creation of the DVD-VIDEO on DVD disc.
The Premiere Elements timeline destined for this choice could consistent of supported photos and or videos.
Please consider.
Any questions and need clarification, please do not hesitate to ask.
ATR -
Can anyone tell me how to save a project in i-movie from one Mac to another? Thanks
Can anyone tell me how to save a project from one Mac to another I can save and copy 'events', but the 'projects' won't open, thanks
Hi
iMovie'08 - NO - Projects can not be moved - As far as I know
You need iMovie'09 or 11 where both Events and Projects can be moved.
DO NOT move or alter any folder named
• iMovie Projects - or -
• iMovie Events
on DeskTop/Finder - Else they will not work and in some cases it is un-repairable !
Moving has to be done inside iMovie Application.
AND You need an in between storage eg an external hard disk and here are an IMPORTANT MUST
• it MUST BE Mac OS Extended formatted - UNIX/DOS/FAT32/Mac OS Exchange will not work FOR VIDEO
• Should be a FireWire one - As USB/USB2 performs badly especially when filling up and when editing HD-video.
Yours Bengt W -
Save image to a JPEG format?
Dear All,
1. I have a float array containing pixel values. From that array I want to create an image (let's say in JPEG format).
How should I do that?
2. If I get a TiledImage (JAI package), how should I save it using to JPEG format?
thanksWhat about continuing in your other threads?
http://forum.java.sun.com/thread.jspa?threadID=665934&messageID=3898160#3898160
http://forum.java.sun.com/thread.jspa?threadID=665488&messageID=3896085#3896085
http://forum.java.sun.com/thread.jspa?threadID=664605&messageID=3892317#3892317
...and you should never cross-post questions.
/Kaj -
How to save data model design in pdf or any format..?
how to save data model design in pdf or any format..?
i ve created design but not able to save it any mage or pdf formatFile -> Print Diagram -> To PDF File
-
How to save iMovie project as .mov file?
That's my question!
Dr.E wrote:
How to save iMovie project as .mov file?
That's my question!
Share/Export with Quicktime
That's my answer, and Welcome, Dr.E to the boards ... -
How to save layout with ALV Pivot format
Hi
In ALV report I have 25 fields but I want to use 10 fields out of 25 fields in Pivot Table. My problem is how to save this layout with Pivot format for on going use. At every time execution of report I need not required to set Pivot Table.
Please help me.
-SanjayHi,
Are you using FM REUSE_ALV_GRID_DISPLAY? If yes, then pass 'X' to the parameter I_SAVE while calling the fm.
if you are using Object Oriented ALV, then call the below method before calling the method for display
DATA : gr_layout TYPE REF TO cl_salv_layout,
gr_layout_key TYPE salv_s_layout_key.
CALL METHOD gr_functions->set_all
EXPORTING
value = IF_SALV_C_BOOL_SAP=>TRUE.
MOVE sy-repid TO gr_layout_key-report.
CALL METHOD gr_table->get_layout
RECEIVING
value = gr_layout.
CALL METHOD gr_layout->set_key
EXPORTING
value = gr_layout_key.
CALL METHOD gr_layout->set_save_restriction
EXPORTING
value = if_salv_c_layout=>restrict_none.
CALL METHOD gr_layout->set_default
EXPORTING
value = if_salv_c_bool_sap=>true.
Regards
Vinod
Edited by: Vinod Kumar on Jul 2, 2010 3:40 PM
Edited by: Vinod Kumar on Jul 2, 2010 4:43 PM -
How to save multiple images from jpeg to psd?
I'm pretty new at this and have tons of vacation photos. Things I've read have left me terrified of leaving my images in jpeg, but I don't know how to save them all to .psd (and is that really the format I want to use?). I tried, and suddenly I'm out of space on my harddrive, so I think I've made copies of copies and have way more saved than I need. Any advice is appreciated - thanks.
<[email protected]> wrote<br />> ...Things I've read have left me terrified of leaving my images in jpeg...<br /><br />Andrea,<br /><br />If the JPEG files are straight out of your camera, there is no harm in <br />"leaving" them as-is... they don't degrade from just sitting there.<br /><br />The possible degradation of JPEG files comes from saving as a JPEG - <br />typically after you have done an edit to the image.<br /><br />One good way to approach the issue: when you open an image for editing, <br />before you do anything, click the menu File > Save As... and then choose <br />the PSD file type. This will make a copy for you to work with, which will <br />NOT degrade as you save, re-edit, re-save, etc. After you're finished <br />working it over, if you need a JPEG copy, use the File > Save As... and <br />select JPEG to make an edited copy in the smaller file format. (File > Save <br />For Web is also useful for this - it allows you to set your quality and size <br />parameters on-the-fly as you save)<br /><br />HTH,<br /><br />Byron
-
Is save for web in JPEG format lossless when quality is 100%?
I am trying to figure out if I can reduce optimised JPEG sizes further than what Photoshop can offer.
My boss has recently questioned whether the file sizes can be reduced using lossless JPEG's further than the sace for web function in photoshop.
From what I can make of it, lossy is the option on GIF files, and therefore I am assuming that the optimisation is lossless for a JPEG at 100 percent quality and lossy when the quality is reduced?
I just want to clarify that I am saving images for the web at the smallest size I can without losing too much quality.
All the images I save are 450px wide @ 75 dpi, but vary in length from 800px high to 1500px high, but have to be saved under 100kb.
Can anyone clarify the lossless and lossy in JPEG format in save for web?
Thanks
RayAs c. says above, JPEG is a lossy compression - there is no lossless JPEG.
PNG 24bit offers lossless compression, that is it performs compression analogous to a zip archive, whereas JPEG works by (in extremely lay terms) building a new image that resembles the original.
GIF and PNG exports let you reduce the number of colours to get better compression - there are fewer pixel differences to compress at 8bit colour depth. Hence a 16 colour PNG will have a vastly smaller file size than a 24bit PNG, and depending on the image may be much smaller than a similar quality JPEG.
Depending on how far off your 100KB ceiling you are, you may be able to improve your file exports by cleaning up the source image - reduce noise and if possible explore exporting as 8bit pngs with fewer colours - avoid using diffusion or noise in the export options. Find the balance between acceptable file size and image quality... photographs tend to be the hardest thing to compress because there's so much detail data, especially in darker (low light) areas. -
How to save a invoice in Word Format
Dear Sd Gurus
Please tell how to save a invoice in any format like word format other than the printed stationery .This saved document will be used for mailing to the customer.
No interface with internet or EDI .
Hope for a reply soon
Satish KulluHi Satish,
First, your SAP system must be configure by the basis people in order for you to send an external mail.
Whether it can send pdf or other file format will depends on the Mail Server you are using.
The basis people must also maintain the conversion parameters so that SAP knows how to convert the billing documents to be send as a pdf file or other desired format specified by your company.
Finally, you have define the IMG in Maintain Output Determination for Billing Documents (Output type MAIL)
Reward points if this helps.
Regards
Karan -
How to save an project in iMovie 10
I am familiar with iMovies 9 and using OSX 10.6.8. Unfortunately I have a new MacPro on OS 10.9.2 and iMovie10 (give me back my old MAcbook any day). I have finished making the movie and saved it on the desktop in mp4 format. All I want to do now is to find out is how to save the movie I have made so I can possibly get to it again to maybe add/delete things from it. In other words, I simply want to save it -
how do I do this?
can I save the movie in m4v format like I did in iMovie 9?
the mp4 format is 900Mb for 10 min, the 12 minute movie I did in iMovie 9 is 400Mb when both saved as 720p. Why?
Can you delete iMovie 10 from Mavericks and install iMovie 9
Many thanks in anticipation from a very frustrated Mac user of 8 years now thinking of going to WindowsOk I think I've worked it out (did not know your could share to the theater, the icloud message made me assume theater was just for icloud) but I've another technical question about export quality and pictures in videos.
I just published four different quality movies (480p, 560p, 720p, 1080p) which only had a few average quality digital pics in them, just to create a short movie to compare.
I've always assumed that the quality of pictures was handled differently to video in that pictures would be fine quality even with lower quality setting, and the thing that really got hurt by lesser xxxP quality was the moving video not the pictures. But when I resized all four Quicktime movies so they were the same size and put them next to each other I could notice quite a difference in the sharpness between each of them. Since I'd rather have the pictures all used at their best quality will I have to choose the 60GB 1080p export function anyway at some point? It seems like such a waste of space and time when technically there are only about ten frames in the entire clip!
Surely there's some kind of video encoding language where you can make the file size reflect this? Kinda like what vector graphics did to bitmap formats for image files.
There must be a way round this ... -
How to save a Tiff to Jpeg and automatically open the Jpeg copy?
I got this workflow,
1) From LR export to PS
2) Do all essential editings.
3) Save. File become 'xyz.tiff' now. (I want to keep this as master copy)
4) Crop to 4r, Save a Jpeg copy as 'xyz 4r.jpg'
5) PS save it as a copy, but do not automatically open the Jpeg copy. The tiff remains opened. I have to manullay Open, browse to it, and open the Jpeg. The 'Open Recent' list also do not list 'xyz 4r.jpg'.
6) Do 4r sharpening for the 'xyz 4r.jpg', save it.
Basically the files I want to keep and worked on is like this: NEF -> xyz.tiff -> xyz 4r.jpg -> xyz sml.jpg(maybe)
Now, it there a way in step (5) to have PS save the Jpeg copy, and automatically open it? I dont care if the Tiff copy remains opened or not, I am done with it.Like Christoph, I ask myself why on Earth would anyone want to do that?
To keep working on an already lossy file which will further deteriorate evey single time you save and re-save it and close it?
That's just nuts!
The abominable JPEG format is a necessary evil, but I use it only as the final output file when someone demands a JPEG for whatever reason.
By all means only work on losless formats like PSD, PSB or TIFF.
Working on a JPEG in order to make it smaller defies all logic. -
How to save greyscale image as jpeg?
Anyone know how to save a greyscale image as a jpeg in labview?
Hi Jonathan,
If I understand you correctly, you had a greyscaled image, which you applied color to and now want to save this new image. Before I jump into possibly solutions, I have a question for you.
Are you using any IMAQ, Motion, or Vision VIs? If not, try using the Picture Control VIs - specifically, the "Write JPEG File.VI"
If that won't work, please post a small piece of code illustrating the issue.
Thanks!
Janell Rodriguez | Applications Engineer | National Instruments -
How to Save to RTF or Word Format?
I'm just getting started with Framemaker. I'm trying to figure out how to save an existing Framemaker book to an RTF or Word compatible format. The Framemaker 9 User Guide says it's an option on the SaveAs command, but RTF isn't one of the available options I see. Am I missing an add-on module to support this file format perhaps? Or am I just looking in the wrong place?
Saving as RTF is usually at the bottom of the dropdown list:
[Ignore the red circle - recylced screen capture - more or less the same as in FM9]
However, the RTF from FM's filters isn't all that stellar in moving FM docuemtns to Word format. The Mif2go tool fom Omni Systems is highly recommended for excellent conversions. See: http://www.omsys.com/dcl/mif2go_main.htm
Maybe you are looking for
-
I have a IPHONE 3G and recently I downloaded the latest version for my phone and since some of my songs that I downloaded thru itunes will not play in it's entirety
-
How to disable "Edit in browser" button in office documents that open in browser
guys, Environment: sharepoint 2010 installed Office Web app i installed office word apps and integrated it with sharepoint 2010 and all the office documents now open in the browser. but this also give the qualified users access to the button "Edit in
-
My iPod Touch has forgotten it has speakers.
Basically my problem is that suddenly my iPod only plays sound through its headphones, and won't play any though the speakers. Anyone know what the problem is and how to solve it? It isn't the settings as the sound is on full.
-
Multiple itunes accounts one person
Is it possible to creat another account for the same person using new e-mail, and another country, in addition to the old account wich is in use too?!
-
Can an image resize automatically to fit into a template?
Many (weaker) programs allow you to drag an image into a template and have it resize to fit into a specific area. Can this be done in CS6? For instance .... if you designed a 4x6 Christmas card template and it had a (place holder?) for a 2x2 photog