• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thumbnails Module

#1
Hi all- I'm working on a much larger file management module, but I found myself writing a pretty complete  thumbnail function for it that I deemed worth splitting out into its own module. It's lightweight but has the advantage that it scans other modules (and \App) for more supported thumbnail extension support. I will be adding more extensions shortly.

Tatter/Thumbnails - Modular thumbnail generation, for CodeIgniter 4

Basic usage:
1. Install with Composer: > composer require tatter/thumbnails
2. Load the service: $thumbnails = service('thumbnails');
3. Create your first thumbnail: $thumbnails->create('bigfile.jpg', 'thumbnail.jpg');

Use the config file to define parameters, or change them on-the-fly:
* $thumbnails->setImageType(IMAGETYPE_PNG);
* $thumbnails->width(120);



Thanks for reading! I'm always glad for feedback and suggestions, feel free to leave a comment here or check out the repo at https://github.com/tattersoftware/codeig...thumbnails
Reply


Messages In This Thread
Thumbnails Module - by MGatner - 07-29-2019, 01:26 PM
RE: Thumbnails Module - by albertleao - 07-29-2019, 01:34 PM
RE: Thumbnails Module - by MGatner - 07-29-2019, 03:25 PM
RE: Thumbnails Module - by albertleao - 07-30-2019, 06:33 AM
RE: Thumbnails Module - by MGatner - 09-05-2019, 12:57 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.