Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different output preview dimension from oc10 backend #2069

Closed
kiranparajuli589 opened this issue May 25, 2021 · 4 comments
Closed

different output preview dimension from oc10 backend #2069

kiranparajuli589 opened this issue May 25, 2021 · 4 comments
Labels

Comments

@kiranparajuli589
Copy link
Contributor

Describe the bug

When a request for a thumbnail is made with the dimensions x=1,y=32 then

  • In oC10 server responds with an image 1px wide and 32px high
  • In ocis, the larger value from the two dimensions is taken to recalculate the smaller dimension to match the original aspect ratio.

Setup

export ACCOUNTS_HASH_DIFFICULTY=4
export OCIS_URL='https://localhost:9200'
export STORAGE_HOME_DRIVER='owncloud'
export STORAGE_USERS_DRIVER='owncloud'
export STORAGE_DRIVER_OCIS_ROOT='/tmp/ocis/storage/users'
export STORAGE_DRIVER_LOCAL_ROOT='/tmp/ocis/local/root'
export STORAGE_DRIVER_OWNCLOUD_DATADIR='/tmp/ocis/owncloud/data'
export STORAGE_METADATA_ROOT='/tmp/ocis/metadata'
export STORAGE_HOME_DATA_SERVER_URL='http://localhost:9155/data'
export STORAGE_USERS_DATA_SERVER_URL='http://localhost:9158/data'
export WEB_UI_CONFIG=$HOME/www/ocConfigs/ocis-config.json
export WEB_ASSET_PATH=$HOME/www/web/dist
export IDP_IDENTIFIER_REGISTRATION_CONF=$HOME/www/ocConfigs/idp.yml
export PROXY_ENABLE_BASIC_AUTH=True
export OCIS_LOG_LEVEL='warn'
export ACCOUNTS_DATA_PATH="/tmp/ocis-accounts/"
export SETTINGS_DATA_PATH="/tmp/ocis/settings"
export STORAGE_SHARING_USER_JSON_FILE="/tmp/ocis/shares.json"
export STORAGE_DRIVER_OWNCLOUD_REDIS_ADDR='localhost:6379'

BRANCH=master

@individual-it
Copy link
Member

@refs please close this issue if the behaviour is correct is ocis

@individual-it
Copy link
Member

@kiranparajuli589 kiranparajuli589 changed the title different output preview dimension with oc10 backend different output preview dimension from oc10 backend May 26, 2021
@refs
Copy link
Member

refs commented May 27, 2021

@micbar
Copy link
Contributor

micbar commented Jun 4, 2024

The ocis thumbnailer has now more features. Closing here.

@micbar micbar closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants