1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-28 09:59:54 +02:00

Adding option which defaults to 1. Set to 2 to get a twice as large image. Useful for Retina displays. Basically a shortcut to enlarge the image. #25

This commit is contained in:
Mikael Roos
2014-11-21 23:44:19 +01:00
parent 1f5f8c02a4
commit 35dd5c9064
3 changed files with 30 additions and 0 deletions

View File

@@ -463,6 +463,15 @@ verbose("json = $outputFormat");
/**
* ppi - change to get larger image to easier support larger ppi, such as retina.
*/
$ppi = get('ppi', 1);
verbose("ppi = $ppi");
/**
* Display image if verbose mode
*/
@@ -522,6 +531,7 @@ $img->setVerbose($verbose)
// Output format
'outputFormat' => $outputFormat,
'ppi' => $ppi,
)
)
->loadImageDetails()