• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Simple image upload/resize/insert workflow
PostPosted: Mon Jan 21, 2019 4:59 pm 
Offline
Forum Members
Forum Members

Joined: Mon Dec 19, 2011 7:19 pm
Posts: 10
I have many non-tech savvy clients using CMSMS to manage their websites, and they find it very straightforward, however they always struggle with inserting images into pages.

The workflow I suggest to them is:
- Upload image with the file manager (usually a large image from camera)
- Resize the image to suggested pixel dimensions using file manager
- Save resized image using file manager
- Go to the Content Page and insert the resized image, and hope the size looks right.

Is there a better workflow that I'm unaware of? I know CGSmartImage can help, but that would require my editors to use scary looking code. I try to use Content Image fields in my templates where I can, but sometimes I need the editors to have the freedom to place images along with their text content.

The ideal concept to me I think would be an option for CGSmartImage to replace IMG tags in the content with CGSmartImage calls, (physically resizing the image with the width and the height specified in the HTML).

How do you all help your clients with images?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Simple image upload/resize/insert workflow  Topic is solved
PostPosted: Mon Jan 21, 2019 5:17 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8166
Location: Fernie British Columbia, Canada
You can use something like: {cgsi_convert max_width=300}{$some_wysiwyg_generated_content}{/cgsi_convert}

It has limited functionality to auto process IMG tags in the HTML that is inside of the block tag.

IIRC if you just have something like {cgsi_convert}<img src="images/something.jpg" width="400" height="300"/>{/cgsi_convert} then CGSI will resize the image to 400x300 automatically.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Simple image upload/resize/insert workflow
PostPosted: Mon Jan 21, 2019 5:26 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 817
Location: Victoria, BC
I use {cgsi_convert}{$content}{/cgsi_convert} like Calguy suggested for most projects. The WYSIWYG will apply width and height parameters to the img tag, so CGSI will resize the image accordingly. All the user has to do is drag the corner of the image to size it how they want in the content editor. Adding a max_width is a good safeguard in case they don't adjust the size.

Note that you may need to increase your PHP memory limit, large images use a lot of memory the first time the content is rendered - but after that it will be cached.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Simple image upload/resize/insert workflow
PostPosted: Mon Jan 21, 2019 6:35 pm 
Offline
Forum Members
Forum Members

Joined: Mon Dec 19, 2011 7:19 pm
Posts: 10
Nice! I never knew of cgsi_convert

Thanks for sharing, that sounds perfect.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting