Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I create three random images:

i1 = Image[RandomReal[1, {8, 12, 3}]];
i2 = Image[RandomReal[1, {8, 12, 3}]];
i3 = Image[RandomReal[1, {8, 12, 3}]];

I can scale a single image with

ImageResize[i1, Scaled[50]]

How can I map ImageScaled to all of them

ImageResize /@ {i1, i2, i3}

using the Scaled[50] argument?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Try

ImageResize[#, Scaled[50]]& /@ {i1, i2, i3}
share|improve this answer
    
Thanks for answer, but there is no closing parenthesis, even if I add the parenthesis it only prints ImageScaled[#1, {Scaled[50], Scaled[50], Scaled[50]}] –  user2019001 Jan 8 at 6:11
    
@user2019001. Thanks for pointing out my typo. Try the edited version. –  m_goldberg Jan 8 at 6:13
    
Thanks for editing, the answer you gave is correct but I put the wrong command, it should be ImageResize, however this worked, thanks. –  user2019001 Jan 8 at 6:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.