CGSmartImage 1.15 turns transparent background black (gif)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

CGSmartImage 1.15 turns transparent background black (gif)

Post by rotezecke »

After an upgrade from CGSmartImage 1.14 to 1.15 my transparent gifs now show a black background.

Code: Select all

{CGSmartImage src=$gcb_params['src'] alt=$gcb_params['alt'] title=$gcb_params['title'] alias=$gcb_params['size']}
i disabled embedding and tried forced file extensions but that makes no difference. all this happened on a test server (with plenty of backups) so there's no pressure, but I'm reluctant to upgrade live site. anyone encountered this problem? i run Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux with php.5.4.4 with some disabled functions:

pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority

----------------------------------------------

Cms Version: 1.11.9

Installed Modules:

CMSMailer: 5.2.2
MenuManager: 1.8.6
ModuleManager: 1.5.5
News: 2.14.1
CGSmartImage: 1.15
Search: 1.7.11
TinyMCE: 2.9.12
CGSimpleSmarty: 1.7.1
CGExtensions: 1.38.1
CGBlog: 1.10.3
CGFeedback: 1.6.2
Captcha: 0.4.6
FormBuilder: 0.7.3
Showtime: 3.3
GBFilePicker: 1.3.3


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.4.4-14+deb7u5
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.31
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
----------------------------------------------
Thank you
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage 1.15 turns transparent background black (gi

Post by calguy1000 »

alias=$gcb_params['size']
The alias parameter allows specifying a named set of parameters.. which you don't describe. i.e: which filter(s) are you using?

That being said... I have repeatedly tested CGSmartImage with transparent PNG's. I have a set of two or three that I regularly test with, and have no difficulty using the standard resize/croptofit etc filters.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: CGSmartImage 1.15 turns transparent background black (gi

Post by rotezecke »

sorry, that alias definition refers to a line like this:
filter_roundedcorners=5 filter_resize='w,189,0' quality=85
here's a link to a graphic that renders fine (in 1.14) http://www.rpc.com.au/uploads/images/sk ... raphic.gif. in 1.15 i end up with black background (on test server). not sure if external URL are allowed in CGSmartImage but if so, could you try:

Code: Select all

{CGSmartImage src="http://www.rpc.com.au/uploads/images/sketches/sun_graphic.gif" alt="test" filter_roundedcorners=5 filter_resize='w,189,0' quality=85}
and let me know how you went?
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: CGSmartImage 1.15 turns transparent background black (gi

Post by wmdvanzyl »

I have similar issues with resizing of images with transparent backgrounds. I found the simplest solution was to just avoid resizes hehe... But i did notice that i had more issues with images created in Photoshop than in Gimp. It could be related to how they encode the file perhaps? What do you use to create your images?
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: CGSmartImage 1.15 turns transparent background black (gi

Post by rotezecke »

I since tried the same image on a different server and it works fine there (with latest CGSmartImage) - hence this in not a cmsms/CGSmartImage problem, but the cause is still a mystery. i use both gimp and photoshop, not sure which one i used on this occasion. i will re-save the file in gimp to see if that makes a difference. thanks for the tip.
Post Reply

Return to “Modules/Add-Ons”