[R] How can i complete an image ?
Posted: Thu Feb 24, 2011 3:39 pm
Hello everyone,
I'm a new french user and my english is poor (sorry by advance).
I have a picture (jpg) whith that size : height 220 pixels and width 327 pixels (landscape image).
I search to complete with a border in green color for a square (327 x 327).
How can i do that ?
An other question :
How can i detect the image orientation (landscape or portrait) ?
Because i search to obtain a square with these 2 orientations.
In summary i search to convert in square all my pictures by completing the picture with a border color.
Best regards.
I'm a new french user and my english is poor (sorry by advance).

I have a picture (jpg) whith that size : height 220 pixels and width 327 pixels (landscape image).
I search to complete with a border in green color for a square (327 x 327).
How can i do that ?
An other question :
How can i detect the image orientation (landscape or portrait) ?
Because i search to obtain a square with these 2 orientations.
In summary i search to convert in square all my pictures by completing the picture with a border color.
Best regards.