title: php yii - how to get image width and height attributes from yii image component
body: <p>im managing my image uploaded by this component</p>
  
  <p><a href="http://www.yiiframework.com/extension/image/" rel="nofollow">http://www.yiiframework.com/extension/image/</a></p>
  
  <p><a href="https://github.com/yiiext/image-component" rel="nofollow">https://github.com/yiiext/image-component</a></p>
  
  <p>with this component i can resize , rotate , move images &amp; ...</p>
  
  <p>but in this case i want to get size attributes (width and height) of a file</p>
  
  <p>and check it if it's width is bigger than my limit (for example 100px) so resize it to this size and save it...</p>
  
  <p>can i do it with this image component?</p>
  
  <p>i've found the way of checking $image->width or $image->height</p>
  
  <p>is there any other optimized way?</p>