How to save JPEGs with a clean matte?

From a cut-out image on a transparent background, I use Save for web specifying a black matte to create a JPEG. The resulting image has compression artefacts within the black matte around the image just the same as if the original image had a black background. I can then apply a mask channel copied from the orignal file to the JPEG and fill the matte with black. Delete the mask and Save and I have a JPEG with a matte free of artefacts.
Is there a simple way to achieve the same thing and what's the point of the matte option?

I am currently using .png files with transparent backgrounds and dropshadows. These are significantly larger (2x or 3x) than the equivalent .jpg files so the site loading time is also much longer but, of course, .jpgs don't allow transparency. My sites are in Flash which, via ActionScript, allows me to apply drop shadows at runtime to transparent images. It also allows me to create a transparent bitmap image from a .jpg by setting to transparent all pixels that have the matte colour. Unfortunately, as I described above, not all the pixels in the matte area will retain the matte colour because of the way the JPEG compression is done. As a result, the cut out image created by ActionScript will not have clean edges. I can fix this by the second operation on the .jpg I've described but this process is not easily automated in an Action and one site in particular involves a lot of images!

Similar Messages

  • How to save jpeg email attachment on ipad air

    how to save jpeg email attachment on ipad air

    Hello, tedrbebe. 
    Thank you for visiting Apple Support Communities. 
    Here are the steps on how to save image attachments from your email account to your camera roll. 
    Save a photo or video to your Camera Roll. Touch and hold the photo or video until a menu appears, then tap Save Image.
    Mail Attachments
    Cheers,
    Jason H. 

  • "Save image" button of Camera Raw does not save JPEG with modifications made.

    I am using Bridge CC to process my RAW images and make modifications to some JPEG images as well.  I have no need to further alter images in Photoshop at the moment, so I do all modifications in Camera Raw. After altering my images, I then press the "save image" button at the left bottom corner of Camera Raw and choose the settings to save in JPEG.  However, when I upload these JPEG images to a website or when I email them, the image is uploaded without the modifications I had done!  It seems to me that Camera Raw is saving JPEGs the same way it does for RAW images, in a non-destructive manner, only attaching instructions for the images to be displayed properly on Photoshop. But when I save an image in JPEG, I expect the image to be saved entirely with the modifications I made while still keeping the original RAW file.  What goes on then?  What is Camera Raw doing and how do I get to save a modified image in JPEG with Camera Raw?  Would you please explain?
    Many thanks for your help,
    Beza

    Hi,
    What version of camera raw and operating system are you using?

  • How to save file with the "/" symbol in the name?

    Hi,
    I have Adobe Professional 8.  I need to save files with names that include the symbol /, but Adobe interprets, for example, A/88/6, as file name 6, in a folder named 88, in a folder named A, and sets up new folders to accommodate that.  I cannot substitute another symbol as I already have thousands of pdf files in a database using the / symbol, and I need them in the same folders.
    I would very greatly appreciate any advice,
    thanks,
    Mo.

    Thanks.
    As I said, I'm pretty ignorant about these things.  I wouldn't know how to begin using a "hack".  All I know is that I was able, for over a year, to save .pdf files directly from my browser on several computers, and use the forbidden "/" symbol in every file name.  After saving the files, Adobe will happily open them, and allow me to edit and re-save them, although I now see that it will not allow me to "save as" them under a different name without removing that symbol.
    I may not be tech-savvy, but I can state that everything I have said here and above is entirely accurate.  I would be happy to open a dropbox account to show you countless .pdfs with the symbol "/" in the name.
    This is honestly not that big a deal.  I greatly appreciate this discussion, and you have inspired me to become slightly less computer-ignorant.
    Hope you all had a great New Year.  I am still recovering.
    Cheers,
    Mo.

  • How to save jpeg email attachment to iphoto?

    i'm an iphoto (and mac os x) newbie, and i can't figure out how to save a jpeg attachment that someone has sent me so the image shows up in iphoto. what is the easiest way to do this? i'm using apple mail and iphoto 6 on a macbook pro running os 10.4.5. although occasionally i'd like to save jpegs from my web-based hotmail account too. thanks
    MacBook Pro   Mac OS X (10.4.5)  

    The easiest way to do this in Mail is; next to the attachment field in Mail, you'll see Save & Slideshow. Use the Save pull down menu to "add to iPhoto" & the Slideshow is just what it says, it will do a slideshow of the photos in your email attachment.
    I don't use Hotmail, but I'm sure all you do is click on the image, File>Save>Desktop. From there you can drag the image into iPhoto. Or simply drag the image from Hotmail to your Desktop or directly into iPhoto.
    I hope that was helpful.

  • How to save layers with cropping?

    I want to export layers to files (basically what "Export Layers To Files.jsx" does) but with cropping each layer (to different sizes). I know how to crop a document from script, but that also crops all other layers (erases their content outside of the cropping area). So my question is - how do I keep/retrieve the cropped out content of the document (layers)? Or maybe there's a better approach altogether?

    Seems to me that you only need to keep the cropped pixels because of way you want to do this.
    However if you want to do it this way you could create a history snapshot, crop and save the first layer. Then restore the document using the snapshot and crop and save the second.
    Or you may be able to just store the current history state in a variable then restore the document using that history state if you are only using a few history states to crop and save.
    With a snapshot you don't have to worry about the number of history states but it needs action manager. Storing the current history state can be done using the DOM.

  • How to save .jpg with jdk1.1.4?(help..)

    HI...
    i know i can use following code to save .jpg with jdk1.4 by using following code:
    BufferedImage img; // your working image
    ImageIO.write(img, "jpg", new File("save.jpg"));
    or
    BufferedImage bimg = null;
    int w = img.getWidth(null);
    int h = img.getHeight(null);
    int [] pixels = new int[w * h];
    PixelGrabber pg = new PixelGrabber(img,0,0,w,h,pixels,0,w);
    try {
    pg.grabPixels();
    catch(InterruptedException ie) {
    ie.printStackTrace();
    bimg = new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
    bimg.setRGB(0,0,w,h,pixels,0,w);
    // Encode as a JPEG
    FileOutputStream fos = new FileOutputStream("out.jpg");
    JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(fos);
    jpeg.encode(bimg);
    fos.close();
    But when i want to recompile with jdk1.1 , what can i do now ?
    Do you have any exapmles?
    thank you so much...

    Sorry I was not in Station!!!!!and hence the delay in replying
    Check this example for more details
    public WriteImageIW( String filename, String type ) {
    try {
    int width = 200, height = 200;
    int x0 = 20, y0 = 20, x1 = width-20, y1 = width-20;
    BufferedImage bi = new BufferedImage( width, height,
    BufferedImage.TYPE_INT_ARGB );
    Graphics2D ig2 = bi.createGraphics();
    GradientPaint paint =
    new GradientPaint( x0, y0, Color.white, x1, y1, Color.black );
    ig2.setPaint( paint );
    ig2.fillRect( 0, 0, width-1, height-1 );
    BasicStroke stroke = new BasicStroke( 10, BasicStroke.CAP_ROUND,
    BasicStroke.JOIN_ROUND );
    ig2.setPaint( Color.lightGray );
    ig2.setStroke( stroke );
    ig2.draw( new Ellipse2D.Double( x0, y0, x1-x0, y1-y0 ) );
    Font font = new Font( "TimesRoman", Font.BOLD, 20 );
    ig2.setFont( font );
    String message = "Java2D!";
    FontMetrics fontMetrics = ig2.getFontMetrics();
    int stringWidth = fontMetrics.stringWidth( message );
    int stringHeight = fontMetrics.getAscent();
    ig2.setPaint( Color.black );
    ig2.drawString( message, (width-stringWidth)/2,
    height/2+stringHeight/4 );
    Iterator imageWriters =
    ImageIO.getImageWritersByFormatName( type );
    ImageWriter imageWriter = (ImageWriter)imageWriters.next();
    File file = new File( filename );
    ImageOutputStream ios =
    ImageIO.createImageOutputStream( file );
    imageWriter.setOutput( ios );
    imageWriter.write( bi );
    } catch( IOException ie ) {
    ie.printStackTrace();
    the file is being created, the type of the file must be specified on the command line.

  • 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.
    -Sanjay

    Hi,
    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 Solo with the Song?

    Hi,
    When I activate solo on some tracks, save the song and open it again, solo is not active anymore, so that it blows off my speakers when I start playing and forget to activate solo again.
    How to save solo activation?
    Thanks for any help.

    Werner Zervas wrote:
    Hi,
    When I activate solo on some tracks, save the song and open it again, solo is not active anymore, so that it blows off my speakers when I start playing and forget to activate solo again.
    How to save solo activation?
    Thanks for any help.
    Solo is a momentary button.
    And, do you have ANYTHING between your speakers and the computer's audio otuput?
    You should have some sort of mixer / monitoring thing that has a volume knob, so you don't kill your ears.

  • How to save JPEG from PS5 with a different DPI?

    I have a scanned image with DPI 4800.
    I have prepared the image for the printing in LAB, so I have tried to change image DPI to 300.
    In PSD file it works, the DPI was changed, but if I try to save the PSD as a JPEG file, the DPI in JPEG is not changed, or more precisely it is not set.
    Thank you for explanation.

    Why LAB? ...or do you mean "lab"?
    How did you try to change the ppi?
    If you have a PSD at 300ppi and Save As... a JPEG it should keep the 300 ppi.  Don't use Save for Web.

  • How To Save Jpeg Copy As Action

    Hi - how do I create an action that saves my open image as a jpeg copy in the same directory as the original? Rather than save as export I am doing a straight 'Save As...' and then selecting the jpeg option. When you do this the 'save as copy' is greyed out. If I 'Save As..' but before changing to jpeg, whilst it is a PSD file I can select 'save as copy', then select the jpeg option. Whilst the box is greyed out it is still ticked. However it still does not save as a copy, but overwrite the original.
    Any clues? Using CS5.

    Hi.
    You can also use the keyboard shortcut Alt+Ctrl+S (save as copy) when recording the action to add copy to the name.
    There's an obvious one I missed. This solves a problem lurking in the action. Duplicate preserves the original name (plus "copy").  But the Save dialog will open to the spot recorded in the action. Not the source document folder. You might have to navigate to the right folder. So in this statement,
    The file should be saved to the same folder...
    needs a small correction. Change "should" to "probably won't".
    Using "Duplicate" severs the ties between the original document and the copy. Alt+Ctrl+S retains that link and the Save dialog opens the right folder.  If your Save step isn't conditional, the new file will be named Original Name plus "copy.jpg". So the action gets really simple.
    1. Ctrl+Alt+S. With Format set to Jpg.
    Thanks, MTSTUNER.
    Peace,
    Lee

  • How to save JPEG files in PSE5.0 ?

    OK. newby Q again.  how the heck does one know what to choose when it comes to saving an image as a JPEG?  the following three boxes pop up:
    IMAGE OPTIONS:
    QUALITY>
    FORMAT OPTIONS:
    BASELINE>
    PROGRESSIVE>
    SIZE:
    up to 2 MBps?

    Generally, if you're going to archive your photos as Jpegs, you would want to save them in as high a quality as possible. This would be with the slider all the way to the right or number "12".
    Usually "Baseline standard" would be the way to go. This writes the photo in one pass to the screen.
    "Progressive" writes the photo in 3 passes across the screen, and is usually used for uploading and viewing large files within a web page.
    The "size" dialog box you're referring to, gives you the approximate time (in seconds) required to upload the photo with 56.6bps internet. (dial up) At least the time is referenced to dial up internet in PSE5. So the speed dialog box gives you this information, [1st]; size of photo (in KB) [2nd]; time to upload, (in seconds), [3rd], reference internet speed.
    If you plan on re-editing your photos at a later date, you should consider saving in a lossless format. Both PSD and TIFF file formats support saving in layers, and don't "recompress" the file each time it's worked on. "PSD" is Photoshop's native format, so it could be argued that this would be the better of the two. Since a scanner in "lossless" mode would save in TIFF, Photoshop would need to convert those files to PSD. A jpeg file would be better suited to a photo in which the editing process has been finalized, and is heading to the printer, or perhaps Aunt Martha in an Email.
    A final thought is that the quality you use to "jpeg" a file, and the file size itself, is largely purpose dependent. For example a photo that you intend to make public on "Flickr" should be down sized and and jpegged at medium quality. This in the event that the photo is downloaded, your work will not be at full resolution and quality, therefore limiting its usefulness to viewing only. In any event, a photo uploaded to the web absolutely should be a COPY, do not tamper with an original in the manner in which I've just described.

  • How to save document with pixel aspect correction?

    I have a document which has has a non-square pixel ratio thus requires pixel aspect ratio correction to be turned on to view the image correctly.
    I want to save it as a JPEG for use online however I cant find an option anywhere to make the saved file have the corrected aspect ratio.
    Essentially when I save the file as a jpeg (or any end format) the image is squished. How can I save the file not squished? (ie. burn in the ratio correction)

    As I still work with a lot of Images, being used in SD Video, where non-square pixels are the rule.
    I Save_As PSD, and Import those adjusted PAR (Pixel Aspect Ratio) Images. However, that does not work in your case. I have never used JPEG, but wonder if that format is fully supportive of non-square pixels - never needed JPEG, so have never investigated.
    As Web display is on a computer, with square pixels, why the use of non-square pixels for the Web? [Just curious]
    Good luck, and wish that I had more to offer, perhaps PNG?
    Hunt

  • I LOST ORIGINAL PHOTOS - HOW TO SAVE JPEG PREVIEWS

    EXTERNAL HARD DRIVE CRASHED HAVING A BUNCH OF ORIGINAL PHOTOS ON IT.  WHEN I WENT INTO LIGHTROOM...THERE THEY WERE...YES..AS THE JPEG PREVIEWS FROM A CATALOGUE...WITH THE LITTLE QUESTION MARK ON THE SMALL THUMBNAILS REMINDING ME THEY ARE GONE.  BUT - I CAN STILL SEE THEM..... 
    QUESTION:  HOW CAN I SAVE THESE PREVIEWS AS IMAGES ONTO MY MAC COMPUTER?  I REALIZE THEY AREN'T PRINTABLE QUALITY...BUT...AT 5X7 IN LIGHTROOMS PREVIEW WINDOW...I'D BE THRIIIIIIIILLED TO HAVE AT LEAST THAT.  THX

    For LR2 there was a LR plugin to do this, I think, although I have never used it:
    http://regex.info/blog/lightroom-goodies/preview-extraction
    However, for LR3 the following was suggested on the LR2 plugin page:
    http://imageingester.com/LRViewer-info.php
    I found both of these buy Googling:

  • How to save Jobs with different priority level in a Queue?

    Hi, Friends,
    I have a set of Job (see below) objects.
    I would make a queue: if they have the save priority level, first in and first out. this is easy to do by ArrayList. however, If they have different priority level, I would like make the Jobs with the highest level first out.
    How can I implemented this idea in Java?
    Regards,
    Youbin
    public class Job {
    private short _priorityLevel = 0;
    public void setPriorityLevel(short priorityLevel) {
    this._priorityLevel = priorityLevel;
    public short getPriorityLevel() {
    return _priorityLevel;

    Hi,
    Here is my test code, it works:
    public class Job implements Comparable{
    private int _priorityLevel=0;
    private String _jobDescription=null;
    public Job() {
    public void setPriorityLevel(int priorityLevel) {
    this._priorityLevel=priorityLevel;
    public int getPriorityLevel() {
    return this._priorityLevel;
    public void setJobDescription(String jobDescription) {
    this._jobDescription=jobDescription;
    public String getJobDescription() {
    return this._jobDescription;
    public int compareTo(Object obj) {
    return (this._priorityLevel-((Job)obj)._priorityLevel);
    import java.util.LinkedList;
    import java.util.Iterator;
    import java.util.Collections;
    import java.util.Collection;
    public class test {
    public test() {
    public static void main(String[] args) {
    Job job1 = new Job();
    job1.setJobDescription("Job1");
    job1.setPriorityLevel(2);
    Job job2 = new Job();
    job2.setJobDescription("Job2");
    job2.setPriorityLevel(2);
    Job job3 = new Job();
    job3.setJobDescription("Job3");
    job3.setPriorityLevel(2);
    Job job4 = new Job();
    job4.setJobDescription("Job4");
    job4.setPriorityLevel(1);
    Job job5 = new Job();
    job5.setJobDescription("Job5");
    job5.setPriorityLevel(1);
    Job job6 = new Job();
    job6.setJobDescription("Job6");
    job6.setPriorityLevel(1);
    LinkedList linkedList = new LinkedList();
    linkedList.addLast(job1);
    linkedList.addLast(job2);
    linkedList.addLast(job4);
    Iterator ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    linkedList.addLast(job3);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    linkedList.addLast(job5);
    linkedList.addLast(job6);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    }

Maybe you are looking for

  • Batch Management Configuration

    Hi, While configuring the Batch Management through  Transaction u2013 OMCT. First  at Batch Level, selected the radio button as Material Level and Saved but Request is not created. Second at Batch Status Management, selected radio button as Batch Sta

  • Multiple Home Page settings not working in Server 2008 R2

    I have Windows Server 2008 R2 as a DC & ADC is same 2008 R2 server both with SP1 with IE 11 installed  other Group policies are there & running well. I had setup two home pages but on user machines its showing & running only one Primary home page. I

  • Problem changing apple password?

    Ive been trying to change my apple login password which I could do not to long ago and now for some reason it doesnt alllow me to change my password it goes threw the proccess the only thing ploblem it has is when the email gets sent to the account a

  • Re-using bind variables in Pro*C

    Using dynamic SQL method 4. Application originally written back in, oh 1999-ish, using Oracle 7. We've upgraded to Oracle 10g. I've looked through the old manuals ( Pro*C Supplement to the ORACLE Precompilers Guide Version 1.5) for an answer to a que

  • How do I stop all open images from resizing together?

    I don't feel like I recall this happening in the past.  If I have multiple images open in Photoshop CS5, and I zoom the one I am working on, or zoom out -- they ALL zoom in or zoom out at the same time, even though I am not working on that one at tha