• This project
    • Loading...
  • Sign in

Зуев Егор / wiki.dev

Logo belkanton
Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • wiki.dev
  • app
  • Image.php
  • Dan Brown's avatar
    Added an image service and facade, Cleaned Image Model · db3acabc
    db3acabc
    Dan Brown authored 2015-12-09 19:50:17 +0000
Image.php 411 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php

namespace BookStack;


use Images;

class Image
{
    use Ownable;

    protected $fillable = ['name'];

    /**
     * Get a thumbnail for this image.
     * @param  int       $width
     * @param  int       $height
     * @param bool|false $hardCrop
     */
    public function getThumb($width, $height, $hardCrop = false)
    {
        Images::getThumbnail($this, $width, $height, $hardCrop);
    }
}