Jump to content
Sign in to follow this  
kphp

[Фича] GIF анимации на стену

Recommended Posts

1 заходим в system\modules открыть там файл attach.php
ищем

//Создание оригинала
                                $tmb = new thumbnail($album_dir.$image_rename.$res_type);
                                $tmb->size_auto('770');
                                $tmb->jpeg_quality('95');
                                $tmb->save($album_dir.$image_rename.$res_type);
                               
заменить на

//Создание оригинала
                                                        // orig save fix for gif and other
                                                        if ($res_type != ".gif") {
                                                                $tmb = new thumbnail($album_dir.$image_rename.$res_type);
                                                                $tmb->size_auto('770');
                                                                $tmb->jpeg_quality('95');
                                                                $tmb->save($album_dir.$image_rename.$res_type);
                                                        };

автор неизвестен

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×