{"id":36318683,"url":"https://github.com/leartgjoni/laravel-thumbnail","last_synced_at":"2026-01-11T11:43:03.070Z","repository":{"id":57014092,"uuid":"124578296","full_name":"leartgjoni/laravel-thumbnail","owner":"leartgjoni","description":"Laravel Package to resize images on the fly with cache functionalities","archived":false,"fork":false,"pushed_at":"2018-03-09T20:42:54.000Z","size":1964,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T02:58:12.626Z","etag":null,"topics":["image","intervention-image","laravel","package","thumbnail","thumbnails"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leartgjoni.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-09T18:27:53.000Z","updated_at":"2024-05-28T23:51:01.000Z","dependencies_parsed_at":"2022-08-22T10:11:04.316Z","dependency_job_id":null,"html_url":"https://github.com/leartgjoni/laravel-thumbnail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leartgjoni/laravel-thumbnail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leartgjoni%2Flaravel-thumbnail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leartgjoni%2Flaravel-thumbnail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leartgjoni%2Flaravel-thumbnail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leartgjoni%2Flaravel-thumbnail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leartgjoni","download_url":"https://codeload.github.com/leartgjoni/laravel-thumbnail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leartgjoni%2Flaravel-thumbnail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28301817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","intervention-image","laravel","package","thumbnail","thumbnails"],"created_at":"2026-01-11T11:43:02.491Z","updated_at":"2026-01-11T11:43:03.061Z","avatar_url":"https://github.com/leartgjoni.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Thumbnail\n\nLaravel Package to resize images on the fly with cache functionalities. \u003cbr/\u003e\u003cbr/\u003e\nUsing Thumbnail facade you will get resized images' paths on the fly. If an image resizing with same dimensions has been already requested before, the package will return the cached image from the previous request. Cached images are stored in \"thumbs\" folder inside your images root path. \n\n## Installation\n\n    1. composer require lersoft/laravel-thumbnail dev-master\n    2. in config/app.php add in providers: Lersoft\\LaravelThumbnail\\LaravelThumbnailServiceProvider::class\n    3. in config/app.php add in aliases: 'Thumbnail' =\u003e Lersoft\\LaravelThumbnail\\Facades\\LaravelThumbnail::class\n    4. php artisan vendor:publish --tag=config\n    \n## How to use\n\nIn your blade view insert:\n    \n    \u003cimg src=\"{{Thumbnail::thumb(\"test.png\", 800, 300)}}\" /\u003e\n    \nthumb function takes 4 parameters:\n\n    1. path of image (change root path in config/thumb.php\n    2. $width (nullable)\n    3. $height (nullable)\n    4. $type (by default = fit). Types are:\n        a. \"fit\" - best fit possible for given width \u0026 height\n        b. \"resize\" - exact resize of image\n        c. \"background\" - fit image perfectly keeping ratio and adding black background\n        d. \"resizeCanvas\" - keep only center\n\n# Don't forget to star this repo ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleartgjoni%2Flaravel-thumbnail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleartgjoni%2Flaravel-thumbnail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleartgjoni%2Flaravel-thumbnail/lists"}