I want: CGSmartImage to downsize or upscale images reatining aspect ratio to a specified width (950px) and then crop them to a fixed height (345px).
Code: Select all
{cms_module module='CGSmartImage' src=$image->file|rawurldecode filter_croptofit='950,345,c,upscale' alias='slider' alt=$image->titlename title=$image->comment}
What it does: it crops fine but doesn't upscale the image(s). Even filter_resize='w,950' doesn't upscale, it just maintains the size of the original image (e.g. a width of 768px).
I think I do something wrong but I can't figure out what it is...?
Cms Version: 1.11
Installed Modules:
CMSMailer: 5.2.1
CMSPrinting: 1.0.2
FileManager: 1.4.0
MenuManager: 1.8.2
MicroTiny: 1.2.3
ModuleManager: 1.5.5
News: 2.12.7
Search: 1.7.6
ThemeManager: 1.1.7
AdvancedContent: 0.9.4
Gallery: 1.6
FormBuilder: 0.7.3
TinyMCE: 2.9.11
AceEditor: 0.2.4.2
CGExtensions: 1.30
CGSmartImage: 1.9.3
Config Information:
php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 12000000
url_rewriting: none
page_extension:
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.3.5-1ubuntu7.10
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 12M
upload_max_filesize: 12M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.63
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server OS: Ubuntu Linux 11.04 (Linux 2.6.38-15-generic-pae on i686)
Web Server: Apache v2.2.17