Editing toolbar disappear? Here's a tip.
Permalink 1 user found helpful
Hey everyone!
I've had this happen SEVERAL times and I just wanted to give you all a tip.
I've had a couple of clients who have had their C5 toolbar disappear on a page. I get no error or anything. Just on a random page. The reason is usually the same. They are trying to display a MASSIVE high-res image in a content block. I usually have to take them back a version through the sitemap in the Dashboard in order to get the toolbar to appear again. I try to ask the clients to keep their photos no more than 1000Kb, but they usually forget and try to display a massive photo again. :)
I just wanted to help out anyone else who is experiencing this.
Good luck!
I've had this happen SEVERAL times and I just wanted to give you all a tip.
I've had a couple of clients who have had their C5 toolbar disappear on a page. I get no error or anything. Just on a random page. The reason is usually the same. They are trying to display a MASSIVE high-res image in a content block. I usually have to take them back a version through the sitemap in the Dashboard in order to get the toolbar to appear again. I try to ask the clients to keep their photos no more than 1000Kb, but they usually forget and try to display a massive photo again. :)
I just wanted to help out anyone else who is experiencing this.
Good luck!
Exactly! :) Totally agree! Even the people who do know the difference between a low-res and high-res have accidentally uploaded the images and tried to display them in the gallery--only to have it go boom.
I've been using a crude 'importer.php' override file that automatically resizes the uploaded image to defined maximum dimensions. I have attached it here. To install it, just rename it to importer.php and put it in
'[root]/libraries/file/importer.php'
Turn OFF the overrides cache for a while so C5 sees this new file and then you can turn the overrides cache back on again if you wish.
Warning. This override limits all uploaded files to the dimensions in the script so if you truly need to upload anything larger, you're out of luck. That's why I mentioned that it was 'crude' but it might give you some ideas on how to utilize the resize functions.
Use at your own risk.
'[root]/libraries/file/importer.php'
Turn OFF the overrides cache for a while so C5 sees this new file and then you can turn the overrides cache back on again if you wish.
Warning. This override limits all uploaded files to the dimensions in the script so if you truly need to upload anything larger, you're out of luck. That's why I mentioned that it was 'crude' but it might give you some ideas on how to utilize the resize functions.
Use at your own risk.
Thanks!
Cold ones are in order for this :)
Cold ones are in order for this :)
Hey mhawke!!
That's AWESOME tool to have. I'll have to use that in the future. Thank you!! :D
That's AWESOME tool to have. I'll have to use that in the future. Thank you!! :D
Thanks but the real solution would be to resize the image BEFORE it gets uploaded so the client doesn't 'time out' before their 4M picture is uploaded. HTML5 to the rescue perhaps?
Good Tip. I've also been able to just resize the offending images in file manager to correct this.
Was just thinking of an add-on auto image resize would be handy :)
(this problem was really obvious when one of my clients bought a new hi-res Nikon and started updating images)