Media/Image.php
- Classes
- Kwf_Media_Image
\Kwf_Media_Image
- Methods
- calculateScaleDimensions
- getExifRotation
- getHandyScaleFactor
- getResponsiveWidthStep
- getResponsiveWidthSteps
- scale
Methods
calculateScaleDimensions
calculateScaleDimensions(
$source, $targetSize
)
:
targetSize options: width, height, cover, aspectRatio
Arguments
- $source
- $targetSize
Details
- visibility
- public
- final
- false
- static
- true
getExifRotation
getExifRotation(
$source
)
:
Got information from http://www.media.mit.edu/pia/Research/deepview/exif.html and http://www.impulseadventure.com/photo/exif-orientation.html
Arguments
- $source
Details
- visibility
- public
- final
- false
- static
- true
getHandyScaleFactor
getHandyScaleFactor(
$originalPath
)
:
Returns an image with a size which should be good to work with.
Acutally this is a 600x600 max-width. If it's smaller in both dimensions it will keep it's original size.
Arguments
- $originalPath
Details
- visibility
- public
- final
- false
- static
- true
getResponsiveWidthStep
getResponsiveWidthStep(
$width, $widths
)
:
Returns next supported image-width
Arguments
- $width
- $widths
Details
- visibility
- public
- final
- false
- static
- true
getResponsiveWidthSteps
getResponsiveWidthSteps(
$dim, $image
)
:
Returns supported image-widths of specific image with given base-dimensions
Arguments
- $dim
- $image
Details
- visibility
- public
- final
- false
- static
- true
scale
scale(
$source, $size, $uploadId
=
null
)
:
Arguments
- $source
- $size
- $uploadId
Details
- visibility
- public
- final
- false
- static
- true