## Preparations
In the `themes\advanced\in-bulletin\elements\side_boxes\polls.elm.tpl` template add below code at the beginning of `poll_element` element:
```
<img src="<inp2:Field name='Image' format='resize:480x640;crop:100|200;quality:10;orientation:auto'/>" border="0" alt="<inp2:Field field='Question'/>">
<img src="<inp2:Field name='Image' format='resize:x480;orientation:landscape'/>" border="0" alt="<inp2:Field field='Question'/>">
<img src="<inp2:Field name='Image' format='resize:x480;orientation:portrait'/>" border="0" alt="<inp2:Field field='Question'/>">
<img src="<inp2:Field name='Image' format='resize:640x480;output_format:png'/>" border="0" alt="<inp2:Field field='Question'/>">
```
## Testing
# Make sure In-Bulletin module is active and advanced theme is selected as default theme
# Go to {nav Catalog & Website > Polls} section
# Create poll without answers, but with big enough (more than 640x480) landscape jpg image
# Go to front-end `forums.html` page
# Confirm, that first image shown is landscape, bad quality, cropped by horizontal axis 2x more, than by vertical
# Confirm, that second image shown have height 480px
# Confirm, that third image shown have width 480px
# Confirm, that fourth image shown is in png format
## Crash testing
In the `themes\advanced\in-bulletin\elements\side_boxes\polls.elm.tpl` template, in the code, added at the beginning of `poll_element` element, change requested format part value, refresh page and see result:
# Change `quality` to -5
# Confirm that exception "Quality value "-5" is out of 0..100 integer range." is thrown
# Change `quality` to 105
# Confirm that exception "Quality value "105" is out of 0..100 integer range." is thrown
# Change `quality` to 1.5
# Confirm that exception "Quality value "1.5" is out of 0..100 integer range." is thrown
# Change `quality` to 100
# Change `output_format` to tiff
# Confirm that exception "Output format value "tiff" is out of [jpg,png,gif,bmp,auto] range." is thrown
# Change `output_format` to png
# Change `orientation` to normal
# Confirm that exception "Orientation value "normal" is out of [auto,manual,portrait,landscape] range." is thrown
# Change `orientation` to portrait
# Where `orientation` is auto change `resize` to 480x
# Confirm that exception "Height parameter is required." is thrown
# Where `orientation` is auto change `resize` to x640
# Confirm that exception "Width parameter is required." is thrown
# Where `orientation` is auto remove `resize` part
# Confirm that exception "Width and Height parameters are required." is thrown
# Where `orientation` is auto set `resize` to 480x640