Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello!

Out of nowhere, since 1 day, when I upload images via CouchCMS on my clients website, the image looks fine at first, but as soon as I do a refresh on the page, you can see that the images are being resized.

For example, a photo that is 2000 pixels of width will become something like 250 pixels wide.
Everything becomes 250 pixels wide once uploaded, out of nowhere. I haven't changed any setting.

Any ideas?

Here's an example of a ligne of code for image upload I'm using :

Code: Select all
<cms:editable name="next_map_image" width="250" label="Image à côté de la map" type="image" hidden='1'/>


Thanks!
Hi :)

a photo that is 2000 pixels of width will become something like 250 pixels wide.
Everything becomes 250 pixels wide once uploaded, out of nowhere.

Well, I think that is because you have specified '250' as the maximum permitted width -
<cms:editable name="next_map_image" width="250" label="Image à côté de la map" type="image" hidden='1'/>

The setting highlighted above will automatically try to resize any image wider than 250px - which is exactly what you see happening.

So, if you don't want the CMS to be manipulating the uploaded images in any way, just remove the 'width' attribute altogether. Alternatively, place a more practical maximum value e.g. 2500.
Don't forget to refresh the template as super-admin for the changes to take effect.

Hope it helps.
Thanks a lot!
I found out what was wrong few minutes before you posted this.
That was so obvious! Thanks again for your time!
You are welcome :)
4 posts Page 1 of 1