We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516c13e commit c524394Copy full SHA for c524394
src/PhpWord/Shared/Drawing.php
@@ -108,7 +108,7 @@ public static function angleToDegrees($value = 0)
108
*/
109
public static function pixelsToCentimeters($value = 0)
110
{
111
- return $value * 0.028;
+ return $value * 0.026458333;
112
}
113
114
/**
@@ -120,7 +120,7 @@ public static function pixelsToCentimeters($value = 0)
120
public static function centimetersToPixels($value = 0)
121
122
if ($value != 0) {
123
- return $value / 0.028;
+ return $value / 0.026458333;
124
} else {
125
return 0;
126
0 commit comments