image 'stretch' but maintaining aspect ratio
David McFarlane
mcfarla9 at msu.edu
Thu Dec 8 15:47:16 UTC 2011
John,
About the lack of anti-aliasing during
stretching... I have never found this to be a
problem, but that is because I always start with
original images at a higher resolution and then
use "Stretch" to effectively "Shrink" the
original image, which seems to work OK.
That said, I too think it better to just make the
orginal images at the size you want displayed,
and then just let E-Prime display those without
Stretch. I like to reserve Stretch just for
doing crude animations where I have to manipulate
the image size at run time (although I might also
use Stretch at times just to be lazy).
-- David McFarlane
At 12/8/2011 09:13 AM Thursday, ben robinson wrote:
>michael's probably got the better suggestion, but i have done this in eprime.
>it requires, as he said, knowing the base size of the pictures. find
>this info by right clicking on each of your picture's icons in
>windows, selecting properties, and then entering the horizontal and
>vertical pixel information into a List object in eprime.
>unfortunately, i know of no way to do this but by hand.
>next you would set your SlideImage object's y-resolution to be a fixed
>value, say 500 pixels high, and its x-resolution to be [(the original
>y-res) divided by 500 multiplied by (the original x-res)].
>
>ben
>
>On Thu, Dec 8, 2011 at 6:23 AM, Michiel Spape
><Michiel.Spape at nottingham.ac.uk> wrote:
> > 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.
More information about the Eprime
mailing list