FAP SUPPORT - Only Png Mid Thumbnails Cached, No Jpg Thumbnails


Subject: FAP SUPPORT - Only Png Mid Thumbnails Cached, No Jpg Thumbnails
Hello,

Mid thumbnails are not cached correctly. Specifically, only png files are cached. Jpg files are not cached in mid thumbnail. So my mid thumbnail med_cache folder only has png files.

On the contrary, my small thumbnails cache correctly, both jpg and png files. So the cache directory is full of both png and jpg files.

There is no problem displaying all thumbnails, mid and small. Only caching of mid jpg thumbnails is the problem.

Anyone has any fix for this?

Profile PM  
Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
Are you sure your JPG files are larger than the mid thumb size specified in ACP?

If actual JPG file is smaller than thumb size it should not be cached.

Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
Yes, absolutely. My gallery has hundreds of very large pics. In the med_cache directory, however, there are only a few tens of mid thumbs, only png for the png photos of my gallery.

Profile PM  
Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
Please provide me a link to the gallery.

Thanks.

Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
I am sending you a PM.

Profile PM  
Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
I fixed this.

file album_picm.php line 423

Changed this line from

Code: [Download] [Hide] [Select]
$Image->SendToFile($pic_thumbnail_new_fullpath, $album_config['thumbnail_quality']);


to

Code: [Download] [Hide] [Select]
if ($pic_filetype == '.jpg')
{
$Image->SendToFileJPG($pic_thumbnail_new_fullpath, $album_config['thumbnail_quality']); }
else
{
$Image->SendToFile($pic_thumbnail_new_fullpath, $album_config['thumbnail_quality']);
}

Profile PM  
Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
I thought I had already fixed that... :roll:

Anyway I might be wrong, because I'm not working on FAP for phpBB any more. I'm sure I have fixed that in Icy Phoenix FAP.

Since it seems you are good with PHP, should you need something else about thumbnails or album you can try to have a look at Icy Phoenix album code which includes an enhanced version of the old FAP.

Glad you solved your issue.

Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
Thanks.

I didn't know that standalone FAP and IP FAP had many differences. From what I understand standalone FAP was stopped 2 years ago while IP FAP is still being evolved and fixed?

If we get IP FAP files to replace standalone FAP, does it work or are there too many differences?


PS: Checked and you were right. FAP code is not fixed, IP code had it fixed :)

Profile PM  
Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
sharkattaq wrote: [View Post]
If we get IP FAP files to replace standalone FAP, does it work or are there too many differences?

I think it is not worth doing that, since it could require a lot of work... I have also used some IP specific functions in latest FAP which won't work in phpBB 2 unless you port them.

If you are ok with how FAP works now just stick with that. The only alternative I would consider is moving to phpBB 3 or Icy Phoenix.

Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
FAP is great the way it is. Actually, it took some modding here and there to bring it how I wanted but now it's just great.

Profile PM  
Subject: Re: Only Png Mid Thumbnails Cached, No Jpg Thumbnails
Thanks, I appreciate. :mricy:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1719s (PHP: 11% SQL: 89%)
SQL queries: 10 - Debug Off - GZIP Enabled