Page 1 of 1
images
Posted: Tue May 17, 2011 11:50 am
by ashwood
basically my users can have profile pictures.. now i have to sizes i need the profile size and then the music size.. thing is it fine on the profile ive set max height and max width but on the music page because the images are a lot smaller the image looks stretched i was wondering how i could stop this?
thanks
ash
Re: images
Posted: Tue May 17, 2011 2:07 pm
by jacek
You would need to have a larger version of the image to show when you need it, there is no way around it really.
Re: images
Posted: Tue May 17, 2011 2:49 pm
by ashwood
ho does fb do it then they av profile pic then wall post pic?
Re: images
Posted: Tue May 17, 2011 3:04 pm
by jacek
the probably have two versions of the image...
Re: images
Posted: Tue May 17, 2011 10:18 pm
by ashwood
i thought that but how would i do that? i just want the pictures not to be squadged up
Re: images
Posted: Wed May 18, 2011 12:09 am
by jacek
What do you mean
Instead of having one image, you would create two
Can you give more information as to the problem you are having ?
Re: images
Posted: Thu May 19, 2011 2:25 pm
by unemployment
ashwood wrote:basically my users can have profile pictures.. now i have to sizes i need the profile size and then the music size.. thing is it fine on the profile ive set max height and max width but on the music page because the images are a lot smaller the image looks stretched i was wondering how i could stop this?
thanks
ash
Set height and width.
You may need to create a new class to set the height and width though.
Re: images
Posted: Fri May 20, 2011 10:27 am
by ashwood
jacek wrote:What do you mean
Instead of having one image, you would create two
Can you give more information as to the problem you are having ?
basically i want the images not to be stretched if the img tag size is say 35x35 but the image is 150x120 i want it to still look rite if you get that?
Re: images
Posted: Fri May 20, 2011 3:13 pm
by jacek
So you wan tit to be cropped.
I guess you would have to do that with php when they upload the image to create the avatar, I explained it (ish) in the image gallery video.
Re: images
Posted: Fri May 20, 2011 8:28 pm
by ashwood
any chance you could do a tutorial for this please mate, can't see it being time consuming? would be much appreciated
Re: images
Posted: Fri May 20, 2011 8:30 pm
by jacek
I have done the image gallery one, which has the resizing in it.
Re: images
Posted: Fri May 20, 2011 8:33 pm
by ashwood
jacek wrote:I have done the image gallery one, which has the resizing in it.
does it show us how or just say you can do this blah like alex did that time where he said you can add security but basically im not gunna show you hahaha
Re: images
Posted: Fri May 20, 2011 8:39 pm
by jacek
ashwood wrote:does it show us how or just say you can do this blah like alex did that time where he said you can add security but basically im not gunna show you hahaha
I haven't watched the phpacademy one, but I tried to explain what was going on.
Re: images
Posted: Fri May 20, 2011 8:44 pm
by ashwood
no worries ill look into it if i cant get around it then ill ask for a tut again.. thanks man