image 'stretch' but maintaining aspect ratio

Michiel Spape Michiel.Spape at nottingham.ac.uk
Thu Dec 8 11:23:00 UTC 2011


Hi,
E-Prime is, of course, not quite as convenient as current web-standards, but I see no reason it should be _that_ difficult to arrange. That is, if your images all need to be 500 pixels high, say, and your picture is 200x400, can't you just stretch it by 25% (i.e. width and height become 500/400=125%, or 250x500)? The only thing required is that you need to know the base size of your pictures prior to the stretching operations.
Two points, however: E-Prime stretches incredibly badly, it does no form of anti-aliasing whatsoever, so your pictures will become degraded in quality. A lot. Secondly, on that point, and given that it's still science-related, I think it is much better practise to do such things off-line (in photoshop or whatever) - keeping the quality somewhat high and knowing full well in advance what you're going to get. It's a bit of work, but well worth it, generally.
Cheers,
Mich

Dr. Michiel M. Sovijärvi-Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology
www.cognitology.eu


-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of JACanterbury
Sent: 08 December 2011 10:47
To: E-Prime
Subject: image 'stretch' but maintaining aspect ratio

Hi all,

My research indicates that the answer to my question is 'No' but I
thought I'd try a quick post incase someone has found a way to do
this.

I want to display images without altering the aspect ratio (ie width
to height proportions) but to fix one of the dimensions, e.g. height
and leave eprime to set the appropriate width so that the image
doesn't get stretched/squashed. (easy in css but I haven't seen how it
can be done in eprime)

Any thoughts?

Many thanks,

John

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list