I think so – sounds like my first post would be better suited to your needs…
– get all images into an array if they have a class of “aligncenter”
– loop through the array and compare naturalWidth/naturalHeight to determine orientation
– if landscape detected, apply “fullwidth” class to image
Then your CSS that you’ve already defined for the “fullwidth” class would take affect.
As previously suggested…