Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to rotate and crop a transparent png?plz solve my problem

    I cant crop and embose a transparent png on jpeg which is rotated.
    when i try to crop the rotated transparent png its coming with some background color and loosing its transparency.How can i do that?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    We are not here to 'solve you're problem'.
    The GD library contains several methods for rotations, creations and transparencies. Transparency can be kept with truecolor images that are created or copied, and any unrecoverable sectors can should be colorable with imagecolortransparent. Perform all the necessary alterations on the original jpg image before replacing colors for transparency to save as a png.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i think u can not solve a problem.
    i am searching for a guy who can solve a problem.

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Quote Originally Posted by chinna_ann View Post
    i think u can not solve a problem.
    i am searching for a guy who can solve a problem.
    You are mistaken; I can solve this problem. What I mean is you're in the wrong forum if you're looking for someone to do the work for you. This: http://codingforums.com/web-projects/ is the listing for our available paid project listings.

    I listed the links to the GD library for PHP as well as some of the functions you will be using to create / alter you're images, and Nightfire posted a link to a short tutorial of how to resize and convert a png to a gif - the concepts are pretty much the same for a jpg to a png.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

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