-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add server-side photo rotation #304
Comments
imgid you can find in the request, it's a unique id assigned to uploaded images, regardless of whether they are selected or not. You apply a rotation to a raw image id, and you place it in id like front_fr (which is a selection) https://world.openfoodfacts.org/product/3760284870115/tiramisu-patissier |
Thank you @teolemon: the first step is to retrieve |
Deleted file: * `corn_da.jpg` Impacted files: * `api_addProductImage_test.dart`: added a test for `OpenFoodAPIClient.setProductImageAngle`; removed a duplicate test * `JsonHelper.dart`: decoded new fields `imgid` and `angle` for product `'images`'' * `openfoodfacts.dart`: new method `setProductImageAngle` * `ProductImage.dart`: added `enum ImageAngle`; added `imgid` and `angle` to `ProductImage` * `UriHelper.dart`: unrelated refactoring
Impacted file: * `ProductImage.dart`
…309) Deleted file: * `corn_da.jpg` Impacted files: * `api_addProductImage_test.dart`: added tests for `OpenFoodAPIClient.setProductImageAngle` and `OpenFoodAPIClient.setProductImageCrop`; removed a duplicate test; minor refactoring * `ImageHelper.dart`: added methods `getProductImageRootUrl` and `getProductImageFilename`; minor refactoring * `JsonHelper.dart`: decoded new fields `imgid`, `angle` and crop fields of `ProductImage` for product `'images`''; minor refactoring * `openfoodfacts.dart`: new methods `setProductImageAngle` and `setProductImageCrop`; minor refactoring * `ProductHelper.dart`: minor refactoring * `ProductImage.dart`: added `enum ImageAngle`; added `imgid`, `angle`, crop fields `coordinatesImageSize`, `x1`, `y1`, `x2` and `y2` to `ProductImage` * `UriHelper.dart`: unrelated refactoring
What
Add server-side photo rotation
https://openfoodfacts.github.io/api-documentation/#jump-4WRITERequests-Rotateaphoto
Part of
The text was updated successfully, but these errors were encountered: