aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-15 11:20:56 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-15 11:20:56 +0200
commit24139680218c3937be327b9bddbe899410724e13 (patch)
tree11323bb15548698824b4cc43181f2eab57b3c502 /include
parent44b542814a0723ecd738ca02fad2e71d878197be (diff)
downloadvolse-hubzilla-24139680218c3937be327b9bddbe899410724e13.tar.gz
volse-hubzilla-24139680218c3937be327b9bddbe899410724e13.tar.bz2
volse-hubzilla-24139680218c3937be327b9bddbe899410724e13.zip
double up default photo sizes - even the mos simple camera can now do images > 1024px
Diffstat (limited to 'include')
-rw-r--r--include/photos.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/photos.php b/include/photos.php
index c0917ce28..240f3d1c4 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -193,8 +193,8 @@ function photo_upload($channel, $observer, $args) {
unset($p['os_storage']);
unset($p['os_path']);
- if(($width > 640 || $height > 640) && (! $errors)) {
- $ph->scaleImage(640);
+ if(($width > 1024 || $height > 1024) && (! $errors)) {
+ $ph->scaleImage(1024);
$p['scale'] = 1;
$r2 = $ph->save($p);
$smallest = 1;
@@ -202,8 +202,8 @@ function photo_upload($channel, $observer, $args) {
$errors = true;
}
- if(($width > 320 || $height > 320) && (! $errors)) {
- $ph->scaleImage(320);
+ if(($width > 640 || $height > 640) && (! $errors)) {
+ $ph->scaleImage(640);
$p['scale'] = 2;
$r3 = $ph->save($p);
$smallest = 2;