Auto thumbnail in content? thumbnail size?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
trentfred
Forum Members
Forum Members
Posts: 12
Joined: Sat Aug 09, 2008 6:52 am

Auto thumbnail in content? thumbnail size?

Post by trentfred »

Alright, here is what I am wanting:
I want for when my client adds content and adds an image that its automatically a thumbnail image (or at least smaller size images) that links to the big image. I'm afraid that he will be adding the very large images and making the page take forever to load. I could teach him to make sure he uses the thumbnails, but if there is an automatic way of doing it, that mite be the best solution.
Something like having the system find anything in the content area that says "/uploads/images/" and changing it to "/uploads/images/thumb_" would work wouldn't it?

This may be wishful thinking  but if there was some kind of way he could make the size he wants his picture on the WYSISYG editor and have that image be generated at that size with a link that would be awesome.

Also is there any way to make the default thumbnail size be bigger? I'm pretty sure there is a way because I have found snippets of people doing so on this forum, but they haven't gone into detail on how to do it.

Overall I'm just trying to make the process of him updating the site as easy as possible with the least chance of messing something up.

I'm also going to be making an image gallery. Any suggestions on best way to go about this. I've done very little with the imagegallery in the tags section and it was only making links with no thumbnail images, but I only messed with it for about 5 minute so the answer could be right there. Is any of the other modules or anything good?

Thanks in advance for any help or suggestions.


EDIT--------------
So my main question now. Is there a way I can make a default setting for all images put into content areas (using WSISYG).

for example: They put an image "uploads/images/donkey.jpg" which would make this currently: ""

but I would want it to be something like this by default:
Last edited by trentfred on Sun Aug 10, 2008 10:10 pm, edited 1 time in total.
Kangaby
New Member
New Member
Posts: 6
Joined: Wed Aug 06, 2008 9:08 am

Re: Auto thumbnail in content? thumbnail size?

Post by Kangaby »

This may or may not help.

I uploaded a bunch of images to a new folder via FTP. When viewed them on the page, I only got the link on the index page with no thumbnails. Then I went into Image Manager and selected the directory I had created with FTP, and placed the images into. This then made the thumbnails for me, and the index page now shows the thumbnails.
faglork

Re: Auto thumbnail in content? thumbnail size?

Post by faglork »

Hi!
trentfred wrote: Alright, here is what I am wanting:
I want for when my client adds content and adds an image that its automatically a thumbnail image (or at least smaller size images) that links to the big image. I'm afraid that he will be adding the very large images and making the page take forever to load. I could teach him to make sure he uses the thumbnails, but if there is an automatic way of doing it, that mite be the best solution.
Something like having the system find anything in the content area that says "/uploads/images/" and changing it to "/uploads/images/thumb_" would work wouldn't it?

This may be wishful thinking  but if there was some kind of way he could make the size he wants his picture on the WYSISYG editor and have that image be generated at that size with a link that would be awesome.
Try the ImageUpload module. You can specify categories, and according to the categories it will auto-resize the images and load them into pre-specified folders. Almost perfect, but not in the wysiwyg editor.
CAVEAT: Won't work if he uploads gigantic image files. Either the browser times out or the server reaches memory limit.
trentfred wrote: Also is there any way to make the default thumbnail size be bigger? I'm pretty sure there is a way because I have found snippets of people doing so on this forum, but they haven't gone into detail on how to do it.
This is a setting in /lib/filemanager/ImageManager/config.inc.php
I changed it to 150 px:

Code: Select all

/*
  Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 150;
$IMConfig['thumbnail_height'] = 150;
I've been whining for a long time that this should be an option in image manager admin.
trentfred wrote: I'm also going to be making an image gallery. Any suggestions on best way to go about this. I've done very little with the imagegallery in the tags section and it was only making links with no thumbnail images, but I only messed with it for about 5 minute so the answer could be right there. Is any of the other modules or anything good?
Try the ALBUM module. Works nice.
e.g.:
http://www.vacation-hotel-germany.com/l ... lery.shtml

trentfred wrote: So my main question now. Is there a way I can make a default setting for all images put into content areas (using WSISYG).

for example: They put an image "uploads/images/donkey.jpg" which would make this currently: ""

but I would want it to be something like this by default:
TinyMCE offers the option to add a popup to an image. Just insert an image, right cklick the image and chose "add link". You get a dialogue where you can chose POPUP. It has a number of nice options.

hth,
Alex
Last edited by faglork on Mon Aug 11, 2008 10:32 am, edited 1 time in total.
User avatar
trentfred
Forum Members
Forum Members
Posts: 12
Joined: Sat Aug 09, 2008 6:52 am

Re: Auto thumbnail in content? thumbnail size?

Post by trentfred »

thanks for the suggestions...
I will do the thumbnail resize for sure. I thought that was the code for it because I found that on the forum, but I couldn't find the path to that file.

Thanks for the other answers, although I'm not 100% to my destination on the auto thumbnail image in content rather than full size.

I don't know php or anything like that, but I do suspect there would be a way to put some kind of if then statement in the template before the content to only affect the content like this:

IF "
would turn into this:
""
Post Reply

Return to “CMSMS Core”