Problem with JPEGs and PNGs scaling in width when proportions are locked

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Andre Vargas

Problem with JPEGs and PNGs scaling in width when proportions are locked

Post by Andre Vargas »

I am having a problem with imported JPEG and PNG images using CMSMS 1.0.2.

After capturing the images I need into my images folder directory and then opening the page I wish to edit. When I go to the “Insert/Edit Image” button in the edit bar, and select either my JPEG or PNG file for placement on my page. The pop-up dialog screen I see references the selected image with the proper canvas size of the file “160x220 ppi- locked” in the Width and Height info area. Also, the image display box in the dialog window matches the pixel dimensions of the imported image.

When I select “OK” to place the image where my insertion I-bar is on the page, the graphic displays on the “Edit Content” screens page mock-up perfectly.

But, when I submit the page and then open my Browser separately to review the page (and refresh screen- just to be sure), I see the placed image has the proper pixel height, but the images pixel width is scaling/stretchable across the screen?

I looked at the source code, and the image width and height displays like this:

<img width="160" height="220"

Other than the “Source” view and “Insert/Edit Image” window, is there
another way to lock the pixel size to match actual files image size?


Any help is greatly appreciated.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with JPEGs and PNGs scaling in width when proportions are locked

Post by Dr.CSS »

Seeing is most helpful, but do you have an image size call in your CSS?...
Locked

Return to “Layout and Design (CSS & HTML)”