I was using Slidedeck pro wordpress (dynamic slider), and set it to pull in the first image from the post's gallery as the image. However, it keeps resizing the image down to 270px when I really need to have the image at 500px. Does anyone know how to remedy this?
I did find a template file with the resizing ratio. However, I am not even sure what to change to achieve the 500px width I need.
// Correct image aspect ratio to fit within skin's image constraints
if( !empty( $image ) ){
if( !empty( $image['width'] ) ){
if( $image['width'] > 270 ){
$w_ratio = 270 / $image['width'];
$image['width'] = floor( $w_ratio * $image['width'] );
if( isset( $image['height'] ) ) {
$image['height'] = floor( $w_ratio * $image['height'] );
}
}
}
if( !empty( $image['height'] ) ){
if( $image['height'] > 250 ){
$h_ratio = 250 / $image['height'];
$image['width'] = floor( $h_ratio * $image['width'] );
$image['height'] = floor( $h_ratio * $image['height'] );
}
}
}
I did try changing 270 to 500 earlier to no avail.