I have a gallery that contains both landscape and portrait pictures and want the gallery to be displayed in the wordpress sidebar. The problem is that the thumbnails of the portraits are scaled into landscape format which is unacceptable. Is there a way to exclude portrait pictures? Or is there a way to keep the ratio for such thumbnails in the sidebar widget?
There are several things you could do to achieve what you want.
Two things regarding the latter case: