Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
just messing with a gallery atm trying to get it to work.
atm it is doing the following
var frontCDWidth:Number = 200;
var frontCDHeight:Number = 300;
but i would like it to just pic up the pictures in the size they are as i will resize them to that size in photoshop.
i want it to pick up there own sizes so that pictures that are landscape dont get messed up.
hope that makes sense asking for help as my normal helper (planty) isnt at his comp atm
[Edited on 05-01-2009 by Matt L]
[Edited on 07-01-2009 by Matt L]
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
That's Javascript.
Can't answer your question though.
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Have you tried just removing those 2 lines so it doesn't explicitly set the size?
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
yeh nothing comes up when they get deleted
|
Planty02
Member
Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
|
its not javascript, its Flash actionscript, However I don't know if there are any similarities in their workings
|
Planty02
Member
Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
|
It seems that the size of the image/object is defined by variables that remain the same for all images.
What is really needed is some method is setting sizes for each object (i.e 200x300 for some, then 300x 200 for varying orientations)
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
any one got any ideas?
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
Is this an image gallery on a web page or something?
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
yeh it is. its one that we have downloaded from some site that we are changing to be able to use my pictures.
but obviously cant work out this part.
[Edited on 07-01-2009 by Matt L]
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
Oh right.
I just use jQuery and a plugin for any image gallery type stuff.
http://jquery.com/
http://malsup.com/jquery/cycle/
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
i dont want to change the gallery though as i love this styled one.
just want it to stop resizing the pictures.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
Normally you have to specify an image size in these types of scripts, either in the code that gets loaded when the page is loaded, or in the <img> tags themselves.
Link to where you got the script from?
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
even better
it is infact this one honest
http://www.weberdesignlabs.com/blog/?p=11
|
Planty02
Member
Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
|
The image size is defined in the galleries actionscript Sam. However by defining a size, you tie every image to be either landscape or portrait whereas as what we really want is a mixture of bother
i.e. 200 (w) x 300 (h) for portrait and 300 (w) x 200(h) for landscape
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Online
|
Not familiar with exactly what you need to do but something similar to PHP getimagesize function then present those assignments inside an if statement to declare them according to the image you're displaying.
|