If I understand this correctly, this functionality only scales pictures down to a 100px but the whole picture must be loaded.. This can cause big lag, if there are plenty of 800x600 pictures in the folder..
Maybe good idea would be implementing something like phpThumb, to create real really small thumbnails, and cache them..
Yes totally. Its just a nasty hack. Too implement what you suggest you'd have to go into the FCKeditor code and locate the section where the uplaod takes place. Add some code to make the thumbnails. Then also youd have to add a bit of code that to the browser to make it look for thumbnails only. To do this just add "thmbnl" or somthing precedding all thumbnamil file names, then in the browser code, tell the browser only to find names starting with this value. I think I will try to do this as it will kane the bandwidth otherwise. Ill let you know when I've done it. I am having trouble with the upload manager already. I dont seem to be able to tell the upload manager to put ALL uploaded file into the deafult folder or /userfiles/'username'/ where 'username' = the current users username. I can see in the code very clearly but its just not working. Anyway, good luck for now. Didn't think anyone would reply, these forums dont seem to be moderated.
What server-side language / technology are you using? Something like this would be extremely easy to insert into the ASP.NET file browser using the System.Drawing GDI+ namespace objects.
I would just generate the resized thumbnails on demand. As long as there aren't 100s of files to generate, you shouldn't overtax your server.
RE: Choosing pictures after upload
.fileinstance
{
color:grey;
width:10%;
height:100%;
border-width:thin;
border-style: dashed;
background:#ccccff;
}
And in the code I told you to change, change it to this instead....
(notice I removed the tables, it was having trouble with that for some reason)
return '<div class="fileinstance">' +sLink +
'<img alt="" width="100px" src="'+fileUrl+'" border="0">' +
'</a>' +
' ' +
fileSize +
' KB' +
'</div>';
If this is all a bit confusing gets omeone to help you. Or email me
graham@thelondongayscene.co.uk
RE: Choosing pictures after upload
http://sosoduko.com
graham@thelondongayscene.co.uk
RE: Choosing pictures after upload
Maybe good idea would be implementing something like phpThumb, to create real really small thumbnails, and cache them..
Just an idea
RE: Choosing pictures after upload
I think I will try to do this as it will kane the bandwidth otherwise. Ill let you know when I've done it. I am having trouble with the upload manager already.
I dont seem to be able to tell the upload manager to put ALL uploaded file into the deafult folder or /userfiles/'username'/ where 'username' = the current users username. I can see in the code very clearly but its just not working.
Anyway, good luck for now. Didn't think anyone would reply, these forums dont seem to be moderated.
RE: Choosing pictures after upload
RE: Choosing pictures after upload
I would just generate the resized thumbnails on demand. As long as there aren't 100s of files to generate, you shouldn't overtax your server.
-- T
RE: Choosing pictures after upload
http://www.imagemagick.org