Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 23. Nov 2024, 18:43

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 10. May 2007, 23:39 
Offline

Joined: 9. May 2007, 01:32
Posts: 8
hi Micheal, whilst you're here.... :D
I copied the send_thumb commands from the file.php and added it to the upload.php file. The bit I'm stuck on is what is the filename format the send_thumb routine wants. I've tried full path, just filename etc and nothing wants to work. :cry: I put the command just after the removeCachethumb command (about line 62) - is the right place ?

Many thanks
Adrian


Top
 Profile  
 
 Post subject:
PostPosted: 11. May 2007, 09:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I think you want to create a thumbnail right after upload?

this does not work your way ;) - send_thumb only sends it - it does not write a thumb the way you like (only in my thumb dir in an encoded way). if you want a thumb with your name:

you have to use resize_file - the last parameter is the destination

$thumb = "thumbs/" . basename($dir) . "_" . $file['name'];
resize_file( $filename, 200, 80, $file['name'], $thumb);
if (!file_exists($thumb)) {
copy ($filename, $thumb);
}

you have to copy because resize does only resize images that are too big ;).
the last parameter only exists in the latest version of the tfu_helper.php

/michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. May 2007, 11:12 
Offline

Joined: 9. May 2007, 01:32
Posts: 8
hi Micheal, I am trying to do thumbnails your way !!! I want to pre-populate the previews (both small and large) so when others click on them they are available instantly. I think (certainly for my webserver), getting a processor hit once (when they've been uploaded) is better than getting random hits when people look at the images. Now I know the uploader isn't really supposed to be a viewer but I just need a quick and dirty viewer :lol:

Regards
Adrian


Top
 Profile  
 
 Post subject:
PostPosted: 11. May 2007, 11:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
then you should try to understand what the send_thumb is doing ;).

should not be that hard ;). you should maybe add another flag to the send_thumb method to disable the real sending when you call it.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 33 guests


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:
cron
powered by phpbb | Datenschutz/ Privacy policy