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
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts

    Avatar images quality problem

    I have a problem in the quality of the members avatars pics that they uploaded in the site, I set a specific width and height to the the pic which I got from the database and the quality of it is usually low and more than the orginal pic, are any solution for this?

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by Mido™ View Post
    I set a specific width and height to the the pic
    Is that the actual dimensions of the image or a preset width/height you enforce in the image tag regardless of the true image dimensions?

  • Users who have thanked MattF for this post:

    Mido™ (02-22-2010)

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by MattF View Post
    Is that the actual dimensions of the image or a preset width/height you enforce in the image tag regardless of the true image dimensions?
    they are a preset width/height I enforce in the image tag regardless of the true image dimensions.
    you know the avatars must be in the same width and height, so I must set the width and height, and what I need to know is how to do this and in the same way the quality don't less much as in the forums for example.

  • #4
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by Mido™ View Post
    they are a preset width/height I enforce in the image tag regardless of the true image dimensions.
    Then it's no wonder they're looking a bit naff.

    you know the avatars must be in the same width and height, so I must set the width and height, and what I need to know is how to do this and in the same way the quality don't less much as in the forums for example.
    If you want all avatars to meet a strict width/height requirement, resize them on upload. You will knacker animated gif's up by doing so, however. Either that or set a max image/width test on upload so that the user won't be able to upload anything above your preset maximum allowed image size. You can use getimagesize() for checking the dimensions of an image.

  • Users who have thanked MattF for this post:

    Mido™ (02-23-2010)

  • #5
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by MattF View Post

    If you want all avatars to meet a strict width/height requirement, resize them on upload. You will knacker animated gif's up by doing so, however. Either that or set a max image/width test on upload so that the user won't be able to upload anything above your preset maximum allowed image size. You can use getimagesize() for checking the dimensions of an image.

    thanks and the function getimagesize() is a good function but it won't help in the quality of the pics, I need a function or filter who could make the pic quality better and more sharpen.


  •  

    Posting Permissions

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