how do I save transparent png from photopaint x4? - Corel PHOTO-PAINT X4 - CorelDRAW Graphics Suite X4 - CorelDRAW Community

how do I save transparent png from photopaint x4?

I have a cpt image that has a single object with transparency applied as a gradient from 100 to 0 via the interactive transparency tool. I would like to export this as a transparent png for web use. However, photopaint x4 doesn't seem to allow me to do this - I get a message that object(s) will be merged, and then no option to maintain the transparency.

My workaround is to save it as a psd from photopaint, open in photoshop, and then use photoshop's export for the web. But there must be a direct way to do it in x4, right?

70 Replies

  • In reply to Jeff Harrison:

    Hi Jeff,

    this transparency business is a little confusing. I believe that PS, PP and Draw all show transparency incorrectly when placing transparent objects over dark backgrounds, especially over black. If you open your Test.cpt file in PP, or save it as a PSD and open it in PS they look identical. The transparency starts VERY early on the left hand side of the image and increases as you move across the image. The original fill is already very transparent by the time you get half way across the image. It is quite transparent only 25% into the image.

    When you add a light background to the image, say yellow, the transparency exhibtis the same behaviour as what we saw without a background. However, adding a dark background you will notice the transparency does not remain the same. Transparency seems to commence too far into the image and not near the left as per the original. To put it another way...the image is almost fully opaque still at a point where the black should really strongly be showing through.

    This is the interesting part: the PP generated PNG exhibits the annoying white haze, BUT it actually conforms far more accurately in terms of transparency to the orginal ! The transparency increases close to the left of the image as it should do.

    To make matters worse, a PSD and CPT file exhibit the incorrect behaviour with transparency over a dark background. What are your thoughts on this?



    [edited by: Brian at 18:43 (GMT -7) on Sat, Feb 14 2009]
  • In reply to Brian:

    Brian
    this transparency business is a little confusing. I believe that PS, PP and Draw all show transparency incorrectly when placing transparent objects over dark backgrounds, especially over black. If you open your Test.cpt file in PP, or save it as a PSD and open it in PS they look identical. The transparency starts VERY early on the left hand side of the image and increases as you move across the image. The original fill is already very transparent by the time you get half way across the image. It is quite transparent only 25% into the image.

    That first test file early in this thread, not too scientific for the area it spans - was a quick test, I just dragged across the face of rectangle.

    For more accuracy, one can make a 1000px wide image and then fade perfectly from edge to edge. Then each 10 pixels should be 1 percent difference. that's what I did here, but you can see I downsampled it all for this forum after tests.

    In the test below, we can see the resulting exports from X4 and compare what PS 7 did when converting the PSD from X4 to a PNG. Something is still wrong with PNG export IMO for these types of fades.

     



    [edited by: Jeff Harrison at 1:07 (GMT -7) on Sun, Feb 15 2009]
  • In reply to Concept211:

    Concept211

    Ahmad,

    Sorry about that, I wasn't arguing with you at all...quite the opposite...I COMPLETELY agree with you and appreciate your full understanding of the same frustration I have when exporting PNGs from PP.  I suppose stating it as "sarcasm" wasn't the correct word.

    I apologize, concept211; I definitely over-reacted. Thank you for your appreciation.

    I recorded an "action" to "save for web as PNG" in Photoshop. Now, I can export TIFFs from PHOTO-PAINT, and batch save them as PNGs from Photoshop.

  • Hello. I too was frustrated about saving real transparency for PNGs in PP. I found solution myself and didn't noticed anyone explained same tehnique in this topic. This requires no other software but Corel Photo Paint itself. I'll try to demonstrate step-by-step (in my example i use PP X3):

    1. We have an object we want to save into real PNG transparency. The background is deleted and we see checkered background

     

    (The object is zoomed by 200%)

    2. We should create a copy of object and temporary hide original one (hiding is not neccesary)

    3. Select a "Object Transparency Brush Tool" and set transparency level to 255 (max)

    4. Make second object fully non-transparent with pre-selected "Object Transparency Brush Tool"

    5. Combine second (visible) object with background. And get first one visible again

    6. Create a mask from object and delete an object

    Now you can see a mask on background. That's exactly what we need

    7. Save PNG from "File->Save As". Do not forget to check "Masked Area" in "Transparency" options list

    Here is result - a PNG with pure transparency achived by this tehnique

    And wrong result made by PP

    Here is a test showing correct transparency (achived by this tehnique) and wrong one (which is generated by PP) by placing image on various backgrounds.

  • In reply to Ghost Bear:

    I never had to do anything special beyond creating an object(s), and making sure the background is deleted, then "save for office." Done. Have probably done that at least 50 times in the last few months.

    Ghost Bear wrote:

    Hello. I too was frustrated about saving real transparency for PNGs in PP. I found solution myself and didn't noticed anyone explained same tehnique in this topic. This requires no other software but Corel Photo Paint itself. I'll try to demonstrate step-by-step (in my example i use PP X3):

    1. We have an object we want to save into real PNG transparency. The background is deleted and we see checkered background

     

    (The object is zoomed by 200%)

    2. We should create a copy of object and temporary hide original one (hiding is not neccesary)

    3. Select a "Object Transparency Brush Tool" and set transparency level to 255 (max)

    4. Make second object fully non-transparent with pre-selected "Object Transparency Brush Tool"

    5. Combine second (visible) object with background. And get first one visible again

    6. Create a mask from object and delete an object

    Now you can see a mask on background. That's exactly what we need

    7. Save PNG from "File->Save As". Do not forget to check "Masked Area" in "Transparency" options list

    Here is result - a PNG with pure transparency achived by this tehnique

    And wrong result made by PP

    Here is a test showing correct transparency (achived by this tehnique) and wrong one (which is generated by PP) by placing image on various backgrounds.



    http://community.coreldraw.com/forums/p/6187/53100.aspx#53100

  • In reply to Ghost Bear:

    Ghost Bear
    I found solution myself and didn't noticed anyone explained same tehnique in this topic. This requires no other software but Corel Photo Paint itself.

    Is it the same solution below (by Gadget)?

    Gadget
    If you want "proper" PNG's with proper alpha channel masks within PP, then you have to maintain the original object at 100% opacity (or at least have it look this way at time of export) and use the mask as a proper alpha channel. (I would duplicate the object, hide the original, get the transparency you want, then create a mask from the object, show the origional and then export.)

    Repeated with illustration:

    Ahmad Ajlouny
    As Gadget deduced, the problem is that PHOTO-PAINT merges the transparent objects with a white background and then apply transparencies as alpha channel to the merged-with-white PNG. PHOTO-PAINT doesn't even respect the color set for Background Color; always merge with white.

    However, we use more complex alphas and Corel PHOTO-PAINT is frustrating.

  • In reply to Ghost Bear:

    Ghost Bear
    Hello. I too was frustrated about saving real transparency for PNGs in PP.

    Another problem in Corel PHOTO-PAINT X4 even in the 20th Anniversary Edition.



    [edited by: Ahmad Ajlouny at 6:27 (GMT -5) on Thu, Apr 30 2009]
  • In reply to Paul McGee:

    Hi P,

    I tried this now... PNG export using "save for office" shows same problem as the usual PNG exports for gradient transparencies.

    Paul McGee
    I never had to do anything special beyond creating an object(s), and making sure the background is deleted, then "save for office." Done. Have probably done that at least 50 times in the last few months.

  • In reply to Ahmad Ajlouny:

    Ahmad Ajlouny

    Another problem in Corel PHOTO-PAINT X4 even in the 20th Anniversary Edition.

    Yes, I fully agree... I've filed more than 20 bugs meanwhile myself... Useless...

  • In reply to DrawMeIn:

    I still have problems with this. I use jpeg and gif most of the time still out of old habit, so maybe my fingers just aren't aligned yet with photopaint.

    Today I worked on a site where I needed a transparent png with a shadow which had alpha transparency as it overlays a background image and needs to be able to move over the background with its shadow as the browser width is different of different visitors. Anyway, I have my image in photopaint with no background, one object with shadow applied which has transparency. Tried 128 and 256 color variations. Chose save as and get message that object will be combined, and sure enough it was (no transparency once in dreamweaver). Then try export instead, and export for web, and same thing. Then create a mask from the object, and get a message that mask will not e saved, and sure enough, once again transparency was lost when exporting or save as(ing) to png from photopaint x4. I'm sure this was something stupid on my part, but I gave up, saved as psd, opened fireworks, and clicked export for web, alpha transparency, done. That's the way it should work in photopaint (I wish, hopefully x5... please :)).



    [edited by: Island at 4:32 (GMT -5) on Mon, Jan 11 2010]