Image aspect ratio locked

Permalink
I have a hard coded image on a single page, I have defined the height and width fields.
Concrete is enforcing the original aspect ratio to be maintained only implementing one of the size fields (height or width)
I need the image to display at my defined height and width ignoring the aspect ratio of the original image.
Is there a way to stop concrete from maintaining the images original aspect ratio?

 
siton replied on at Permalink Reply
siton
How you added that pic? "single page" its very general.
You must add the code for the image (In Concrete5 thier more than one way to add image)

By image helper:
Example:
$imageHelper->outputThumbnail($obj, $maxWidth, $maxHeight, $alt = null, $return = false, $crop = false)

If your original image is (2000X2000 px) - This code will output 500x500px:
$imageHelper->outputThumbnail($obj, 500, 500, true)
Gondwana replied on at Permalink Reply
Gondwana
This could happen if you're using HTML attributes to specify the size, whereas c5 may be applying CSS rules. CSS trumps HTML attributes. You can snoop on what's happening using a debug/inspector view in Firefox/Chrome/IE/etc.

If c5 CSS is the problem, you can over-ride it using style="..." in your IMG tag.

I think.
ppisoban replied on at Permalink Reply
ppisoban
Thanks for the reply guys. I'm working with djtolerance on this project.

We found the problem and it is indeed a CSS issue. We've fixed it now but thanks for the input!

Cheers,

Duncan