Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no thumbnail
#1
Version 3.3.12 does not create thumbnails, or I missed something?
Reply
#2
Hmm what are you seeing?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
http://prntscr.com/cr93lr
http://prntscr.com/cr93tc
http://prntscr.com/cr93z5
No thumbnails in the folder thumbs.
Thumbnails are created only after the transition to the page http://prntscr.com/cr95cu
Reply
#4
Well the first one does not have images selected from the dropdown, hence no thumbnails.
Not sure what the actual problem is, upload images and check again i guess.

The screenshots you posted show thumbnails, soooo
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
To create a thumbnail, it is necessary after loading the image to move to this page http://prnt.sc/cr95cu
earlier miniatures were created automatically
Reply
#6
Works for me, which method are you using to upload, i tested both uploadify and form both worked.
using main folder, subfolder ?

What exactly are you doing to replicate ?

did you check your error log ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
http://youtu.be/hu41qKnMkzI?hd=1

there are no errors
Reply
#8
Ok so thumbsm is created but not thumbnail 200px one
Ill check again
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#9
When using uploadify, .thumbnail fails to create, confirmed BUG

Fixed in hotfixes
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#10
Workaround disable uploadify
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#11
Yes, it works
Reply
#12
Thanks ill get it released soon
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#13
released
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#14
(2016-10-12, 01:44:09)shawn_a Wrote: released

Now everything is fine Smile thank you.
Reply
#15
Hi,

I'd like to ask if there is an easy way to regenerate "thumbnail." files. I made a website that was relying on pic.php but in last few days it just went crazy and hosting blocked the website due to too many executions (allowed 4000, blocked with 13000 in 2 hours..). So I rewrote my template to just reuse default thumbnails, but I had to change the width from 200 to 350, so now I need to recreate all thumbnails that are smaller (or are missing, as I see that many of them are missing, probably due to the bug with uploadify).

Is there an existing script that would crawl through files and recreate all thumbnails ?

Thanks Shawn
Reply
#16
A possible solution here is to use Thumb lib. Just copy "imanager" folder in the plugins directory (an installation is not necessary).

With this function you can loop through all the images in the specified directories and recreate the thumbnails:
PHP Code:
/**
 * Creates thumbnails and cached them
 *
 * @param string $dir - Name for the image folder
 * @param string $target - Name for the thumb folder
 * @param integer/string $width  - Thumb width
 * @param integer $height - Thumb height
 */
function resize($dir$target$width 0$height 0)
{
    include(
GSPLUGINPATH.'imanager/phpthumb/ThumbLib.inc.php');
    if(!
file_exists(GSDATAPATH.'uploads/'.$dir))
    {
        echo 
'Directrory: '.GSDATAPATH.'uploads/'.$dir.' does not exist';
        return 
false;
    }
    if(!
file_exists(GSDATAPATH.'thumbs/'.$target))
    {
        echo 
'Directrory: '.GSDATAPATH.'thumbs/'.$target.' does not exist';
        return 
false;
    }

    
$width = ($width == 0) ? (int) GSIMAGEWIDTH : (int) $width;

    foreach(
glob(GSDATAPATH.'uploads/'.$dir.'/*.{jpg,jpeg,gif,png}'GLOB_BRACE) as $image)
    {
        
$thumb PhpThumbFactory::create($image);
        
$path_parts pathinfo($image);
        
$thumb->resize($width$height);
        
$thumb->save(GSDATAPATH.'thumbs/'.$target.'/thumbnail.'.basename($image), $path_parts['extension']);
    }


Here's an example of this function call, where first parameter is the folder name for images in /data/uploads/ and the second the folder name for thumbnails in /data/thumbs/:

Code:
resize('images', 'images');

You can now delete imanager folder, when no longer required
Reply
#17
Thanks Bigin!

I tried it and it looks promising, I will have to do some changes but this will solve my issues
Reply




Users browsing this thread: 1 Guest(s)