Image Block Default Size
Permalink
Feature request for a button on the "Add Image" panel that sets the Maximum Dimensions to the image's current dimensions. Or a display of the image's current dimensions so you know the original size prior to entering the maximum dimensions.
I am used to html programing where it is recommended to include a height and width for any image that you place on a page. Not sure if that is a benefit for a page built in php.
A button beside C5's height and width boxes might be configured to grab the actual uploaded image size and place that in the boxes as a starting point.
A button beside C5's height and width boxes might be configured to grab the actual uploaded image size and place that in the boxes as a starting point.
When I add an image through an Image block or by clicking "Add Image" in the Content block the width and height are automatically added if I leave the max dimensions set at 0. Viewing the html source code of the outputted page confirms this.
What steps are you taking to produce source code for an image that doesn't include width and height attributes?
What steps are you taking to produce source code for an image that doesn't include width and height attributes?
When I add an Image Block and choose an uploaded image from the "Add Image" panel the images dimensions are not automatically added to the Width and Height boxes- under Maximum Dimensions. I did a view source on my site and did see what you indicated that the image's dimensions are in the code.
I assume those width and height boxes are there for setting max dimensions only. I am used to my traditional (non CMS) web software that automatically lists the current dimensions in its width and height boxes. Then you can choose to change the size if you want to... not that you would want to do that vs. creating the final size in photo editing software first.
It would be handy to have the Max width and height boxes list the initial dimensions. If you were say linking to a set of pics from another site it would be easier to monitor what actual sizes you are bringing in.
Thank you for your input!
I assume those width and height boxes are there for setting max dimensions only. I am used to my traditional (non CMS) web software that automatically lists the current dimensions in its width and height boxes. Then you can choose to change the size if you want to... not that you would want to do that vs. creating the final size in photo editing software first.
It would be handy to have the Max width and height boxes list the initial dimensions. If you were say linking to a set of pics from another site it would be easier to monitor what actual sizes you are bringing in.
Thank you for your input!
Note that when you enter values into the max dimensions c5 actually creates a resized and optimized copy of the image.
This is different than when you enter numbers directly into your image tag and the image is merely scaled down (which, as you note, is bad form).
eg you have a 2000 x 1500 image which is 900kb. In html you can add width='100' and height='75' and the image will show at that size but still be 900kb. With c5 if you enter your max dimensions as 100 and 75 a copy will be made of the image that is actually 100 x 75 and will weigh something like 25kb. (totally made up numbers)
This is different than when you enter numbers directly into your image tag and the image is merely scaled down (which, as you note, is bad form).
eg you have a 2000 x 1500 image which is 900kb. In html you can add width='100' and height='75' and the image will show at that size but still be 900kb. With c5 if you enter your max dimensions as 100 and 75 a copy will be made of the image that is actually 100 x 75 and will weigh something like 25kb. (totally made up numbers)
If you need to know a file's original dimensions you can find out in the file manager by clicking the file and selecting "properties". You can get to the file manager by clicking in the Image block (or anywhere you can add an image) on an "add image" or file that is already loaded.
So, when you are selecting your image, before you click "choose" hit "properties" instead and take a gander.
Hope that helps!