Crop images

Permalink Browser Info Environment
I would like to crop the images in the controller. But the getThumbnail Method doesn't seem to work. Do you have any ideas how to get this done?

Type: Discussion
Status: Resolved
paradummy
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Yes, I do have some ideas. I'm currently building this for you. So when I'm done, I will update the add-on. Then you can create another block with images and crop to your desired dimensions. So you can fill in height, width and crop true/false. Sounds good? :)
paradummy replied on at Permalink Reply
paradummy
Wow that sound great! Many thanks in advance.
ramonleenders replied on at Permalink Reply
ramonleenders
I'm giving you the option to make a thumbnail. If chosen yes (checkbox), you will get a input field with the wanted width and height of the image. Besides that, you can crop the image (yes/no with checkbox) and enter class name(s) for the image (i.e. "img-responsive img-rounded"). You have any more feature requests for this specific field?

In the meanwhile, could you send me an email perhaps, so I can send you the updated field type by mail? I won't make a new version of block designer yet, for such an update. So I could send you the updated field type by email instead of here (it's public here, so everyone can view your mail and spam and download the field type).
ramonleenders replied on at Permalink Reply
ramonleenders
I've got it done, so whenever I received your email, I will send it to you.

concrete5 Environment Information

# concrete5 Version
5.7.2

# concrete5 Packages
Block Designer (0.9.6), Fundamental (1.0.1).

# concrete5 Overrides
blocks/autonav, blocks/page_link, blocks/background_image, blocks/contact, languages/de_DE, themes/fundamental

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.3.27

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, phalcon, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, SQLite, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 180
max_input_vars - 1000
memory_limit - 768M
post_max_size - 256M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 256M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Firefox/33.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.