diff options
author | zotlabs <mike@macgirvin.com> | 2019-06-26 21:54:50 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-06-26 21:54:50 -0700 |
commit | d83ce0863abaf448b64c550999e070376fd71b71 (patch) | |
tree | a0f0b45249487bd471bcf0545dfbb23f7b871623 /util | |
parent | cf844cb27c02c3aae636eb1aa1587b1d5e3e81a0 (diff) | |
parent | 5ccef18d4e5b7901f78a11e0124c16e1c484e3bf (diff) | |
download | volse-hubzilla-d83ce0863abaf448b64c550999e070376fd71b71.tar.gz volse-hubzilla-d83ce0863abaf448b64c550999e070376fd71b71.tar.bz2 volse-hubzilla-d83ce0863abaf448b64c550999e070376fd71b71.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'util')
-rwxr-xr-x | util/thumbrepair | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/thumbrepair b/util/thumbrepair index e13a5f24a..acd453719 100755 --- a/util/thumbrepair +++ b/util/thumbrepair @@ -7,7 +7,7 @@ require_once('include/photo/photo_driver.php'); cli_startup(); -$x = q("SELECT resource_id, content, width, height, mimetype FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0"); +$x = q("SELECT resource_id, content, width, height, mimetype, os_path FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0"); if($x) { foreach($x as $xx) { @@ -44,6 +44,7 @@ if($x) { $im->storeThumbnail($nn, PHOTO_RES_320); break; case 4: + $im->scaleImage(300); $im->storeThumbnail($nn, PHOTO_RES_PROFILE_300); break; case 5: @@ -55,6 +56,7 @@ if($x) { $im->storeThumbnail($nn, PHOTO_RES_PROFILE_48); break; case 7: + $im->doScaleImage(1200,435); $im->storeThumbnail($nn, PHOTO_RES_COVER_1200); break; case 8: |