14 Commits

Author SHA1 Message Date
alxnkt
65293fd21c Auto rotate JPEG images
Signed-off-by: alxnkt <alxnkt@mail.ru>
2020-07-18 10:07:37 +02:00
Andrey Hohutkin
94e031eba5
Fixes for Media Library upload (#5971)
* Fix formatFileInfo

Keep original file name including extension

* Fix file name for generated media

File name was not set for all generated media: thumbnail and resized pictures.

* Generate hash based on file name without extension

* cleanup PR

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

* Fix unit tests
Exclude temporarily unit test 'Replaces reserved and unsafe characters for URLs and files in hash' because it did not work properly ever.

* Remove path delimiter from filename because it is correct character for file path

* Fix e2e

* Continue fixes for e2e

* Fix createRequest content type

* Correct thumbnail name in e2e test

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Andrey Hohutkin <none@none>
2020-06-25 10:13:42 +02:00
Vanessa
022b228279
Fix issue #5934 - add path folder for thumbnail and breakpoints images (#6078)
Signed-off-by: Lith <lith@amykron.com>
2020-05-07 09:28:26 +02:00
Alexandre Bodin
7123f68737 Allow to create the media.update webhook + fix default width and height
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-15 19:15:21 +02:00
Alexandre Bodin
d615bf9b7f Fix svg and gif formatting
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-15 14:54:33 +02:00
Alexandre Bodin
e10112ed41 fix(upload): fix error on responsive format when disabled
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-20 18:32:29 +01:00
Alexandre Bodin
571e829b7a Fix typos
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 21:52:23 +01:00
Alexandre Bodin
939c8354c0 Create file formatters
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 21:52:23 +01:00
Alexandre Bodin
2d12f88394 Optimize file
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:43 +01:00
Alexandre Bodin
8d025b89f3 Init optimization func and clean up code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:42 +01:00
Alexandre Bodin
587cdb5a05 Save thumbnail in forats json
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:02:51 +01:00
Alexandre Bodin
607e87431a Move util out of service
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-06 19:20:48 +01:00
Alexandre Bodin
c567616ba8 Resize only when necessary
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-06 17:01:33 +01:00
Alexandre Bodin
b144b19372 Add thumbnail on upload and handle deletion
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-06 17:01:32 +01:00