Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: request to convert image to png

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default request to convert image to png

    Click image for larger version. 

Name:	cross.jpg 
Views:	3787 
Size:	5.1 KB 
ID:	4717

    I want to convert this image into png format with a black cross with a transparent background. I'm hoping someone might be interested. I don't have the means or know how to do this.

    Thanks

    EDIT: You can see an example of this symbol here. In most browsers and PCs the Q looks like the image shown above. This is not true for mobile browsers, which is why I am hoping to get the png version of that image. Technically it is the letter Q when viewed in a type of symbol font.

    I also notice that the image I uploaded to DD was converted to jpeg format

    EDIT: Here is a link to the png version I created. http://www.animeviews.com/images/pops/cross.png
    Last edited by james438; 09-08-2012 at 07:16 AM. Reason: additional info added
    To choose the lesser of two evils is still to choose evil. My personal site

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I'm not sure what damage the conversion to JPG did. Repost with a link to the file somewhere else if this doesn't work for you.
    You could also use a GIF if you wanted just simple transparency (either transparent or not).
    But this PNG is about as good as you'll get from that.
    Click image for larger version. 

Name:	cross.png 
Views:	1228 
Size:	17.6 KB 
ID:	4718
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    I edited the post above with a link to the png version of the image. Not that it is needed since the version you created for me is excellent. Thank you
    To choose the lesser of two evils is still to choose evil. My personal site

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you zoom in a lot to the PNG, you'll see the same fuzzy pixels in it that are there in the JPG version-- looks like the JPG conversion didn't harm anything.
    If it turns out that the fuzzy pixels need to be removed, you probably just need to paint them out. But they're not visible unless you zoom in (or maybe against certain backgrounds), but they could also give it some texture.
    Glad it works for you.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    However, the main problem with jpg is not the quality of the original photo, but retaining the quality. Jpg is a compression format, and as such, the goalis to compress the picture, as to take up less space. Every time a jpg is saved, it compresses, if I remember correctly, by about 10:1 for each pixel. If there are a lot of fiddle pixels in the photo which make a big difference, this am effect it.
    Hope I helped,
    Bernie
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    JPG has a quality range of 1 to 10 (at least that's how it's displayed often, maybe it's really 1% to 100%), and the loss of quality varies by that, as well as by the details in the image-- in this case it's black and white so very little was lost. Originally I saw some fuzzy pixels and I wasn't sure if they were in the original or due to the JPG conversion. But they're in the original too, so it looks like JPG compression didn't do much.

    Converting to JPG is a bad idea if you want to maintain full quality. But it can (as in this case) not do much damage. Other times (especially if the quality is set very low) it can be obviously lower quality; or it can be somewhere in the middle where there's essentially invisible quality loss that only appears if you later do other things to the image.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    I did upload the image to this thread in png format, but the forum decided to convert it to jpeg for some reason.

    I could be wrong. I tried to upload it just now and it did upload it as png, so maybe I accidentally uploaded the wrong image.

    I believe the image quality is 1 to 100. Take a look at imagejpeg.
    To choose the lesser of two evils is still to choose evil. My personal site

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I believe the image quality is 1 to 100. Take a look at imagejpeg.
    That's true. But in other programs I've seen 1 to 10. So I don't know what the technical specifications are for the format. It might in fact not have any literal "quality" specifications, just that various algorithms that can convert to JPG choose to do so with varying quality on whatever scale applies to that algorithm. The final image is just JPEG data... I don't think it's JPEG data at X%.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The bottom line is that once an image is 'stepped on' using the JPEG format it can be difficult or impossible to retrieve the 100% quality/resolution it once had without resorting to the the original. That information isn't saved, you can only try editing the image back to higher quality. So always keep a backup of the original. I try to alway edit only copies. The three programs* I use have a scale of 1 to 100 or 1 to 99. So at least that much is available. There could be a number of other stops available in the format, like 11.765% for example. But 1 to 100 seems adequate. Some programs use 1 as the best quality, 100 as the worst, most are 1 as the most compression/least quality, 100 as the least compression/most quality.


    *Paint Shop Pro, The Gimp, Xat Optimizer Pro
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The bottom line is that once an image is 'stepped on' using the JPEG format it can be difficult or impossible to retrieve the 100% quality/resolution it once had without resorting to the the original.
    Right, but what I was trying to explain above is that the amount of damage varies greatly-- in this case, I can't see any at all.
    As a general rule, it's good to save backups of full quality images, a very good idea.
    But that's not the problem here-- James just uploaded a JPG or uploaded a PNG that was automatically converted to a JPG. The question was just whether, in this case, it would be worth redoing the conversion (to remove the background) with the original PNG. And it wasn't-- the quality from the JPG was fine.

    Some programs use 1 as the best quality, 100 as the worst, most are 1 as the most compression/least quality, 100 as the least compression/most quality.
    It's this sort of variation that makes me wonder if it really isn't part of the format at all, just a part of certain/most algorithms that convert to JPG.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Similar Threads

  1. Replies: 1
    Last Post: 09-26-2009, 02:11 AM
  2. Title to image convert problem !!!
    By winpeace in forum PHP
    Replies: 1
    Last Post: 10-20-2008, 07:04 PM
  3. Convert a html into image
    By Wingel in forum Looking for such a script or service
    Replies: 1
    Last Post: 07-15-2008, 01:34 AM
  4. Replies: 1
    Last Post: 02-11-2008, 03:07 PM
  5. image request
    By *Warrior* in forum Graphics
    Replies: 1
    Last Post: 07-07-2007, 04:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •