images

Anything questions related to styling should go in here.
Post Reply
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

images

Post 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
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: images

Post 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.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: images

Post by ashwood »

ho does fb do it then they av profile pic then wall post pic?
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: images

Post by jacek »

the probably have two versions of the image...
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: images

Post by ashwood »

i thought that but how would i do that? i just want the pictures not to be squadged up
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: images

Post 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 ?
Image
unemployment
Posts: 165
Joined: Fri May 06, 2011 5:02 pm

Re: images

Post 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.
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: images

Post 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?
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: images

Post 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.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: images

Post by ashwood »

any chance you could do a tutorial for this please mate, can't see it being time consuming? would be much appreciated
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: images

Post by jacek »

I have done the image gallery one, which has the resizing in it.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: images

Post 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
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: images

Post 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.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: images

Post by ashwood »

no worries ill look into it if i cant get around it then ill ask for a tut again.. thanks man :)
I would put a signature.. BUT, i don't have the time.
Post Reply