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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user