public function parseFilenameIntoResizedFilename($filename, $width=300, $height=300)
    {
        $fileNameWithNoExtension = $this->filenameWithNoExtension($filename);
        $fileNameExtension       = $this->filenameWithExtensionOnly($filename);

        $parsedFilename  = "";
        $parsedFilename .= $fileNameWithNoExtension;
        $parsedFilename .= "-";
        $parsedFilename .= $width;
        $parsedFilename .= "x";
        $parsedFilename .= "$height";
        $parsedFilename .= ".";
        $parsedFilename .= $fileNameExtension;

        return $parsedFilename;
    }
public function parseFilenameIntoResizedFilename($filename, $width=300, $height=300)
    {
        $fileNameWithNoExtension = $this->filenameWithNoExtension($filename);
        $fileNameExtension       = $this->filenameWithExtensionOnly($filename);

        $parsedFilename  = "";
        $parsedFilename .= $fileNameWithNoExtension;
        $parsedFilename .= "-";
        $parsedFilename .= $width;
        $parsedFilename .= "x";
        $parsedFilename .= "$height";
        $parsedFilename .= ".";
        $parsedFilename .= $fileNameExtension;

        return $parsedFilename;
    }
public function parseFilenameIntoResizedFilename ( $ filename , $ width = 300 , $ height = 300 ) { $ fileNameWithNoExtension = $ this -> filenameWithNoExtension ( $ filename ) ; $ fileNameExtension = $ this -> filenameWithExtensionOnly ( $ filename ) ; $ parsedFilename = "" ; $ parsedFilename .= $ fileNameWithNoExtension ; $ parsedFilename .= "-" ; $ parsedFilename .= $ width ; $ parsedFilename .= "x" ; $ parsedFilename .= "$height" ; $ parsedFilename .= "." ; $ parsedFilename .= $ fileNameExtension ; return $ parsedFilename ; }
Take an image's filename, and return the name of the resized file.

For use within the "single post" blade file.

Does *NOT* create the resized image file.

@param  string   $filename                 The uploaded image's filename
@parem  int      $width                    Width of the resized image
@param  int      $height                   Height of the resized image
@return string
Take an image s filename and return the name of the resized file .