if i have an image with a black and big frame, how can i take it off?
You can use imcrop to do this.
imcrop
Edit: In addition to @Geoff's comment, imresize can be used for resizing.
imresize