about summary refs log tree commit diff
path: root/src/lib/media/manip.ts
Commit message (Collapse)AuthorAgeFilesLines
* Delete the entire temporary directory instead of just the temp file, also ↵Hailey2024-05-131-13/+18
| | | | | | | use `cacheDirectory` over `documentDirectory` (#3985) * lint * remove extra arg
* ✅ Fix "Download CAR file" on mobile (#3816)Matthieu Sieben2024-05-121-1/+73
| | | | | | | | | | | | | | | | | | | | | | | | | * download CAR file using AtpAgent instead of building URL * add loader icon on download car button * actually save to disk on android * style nits * bottom margin nit * localize toast * remove fallback so back button works correctly * keep throwing an error if mime type isn't used * be more explicit with toasts * send errors to sentry when encountered --------- Co-authored-by: Hailey <me@haileyok.com>
* Cleanup files after each iteration of compression and downloading (#3599)Hailey2024-04-251-14/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | * delete image on each iteration of compression * replace a few other instances of `unlink()` * ensure that moving to the permanent path will succeed * use `cacheDirectory` * missing file extension? * assert * Remove extra . * Extract safeDeleteAsync, fix normalization * Normalize everywhere * Use safeDeleteAsync in more places * Delete .bin too --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Ignore image responses on non-200 status (#3693)dan2024-04-241-5/+11
| | | | | * Ignore image responses on non-200 status * Fix tests
* Add permission checks before saving image (#945)Ansh2023-07-031-15/+3
| | | | | | | | | * catch permission errors when saving image to album * Save photos to media library alone (not an album) --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* [APP-716] Add 'save image' button to the lightbox (#926)Paul Frazee2023-06-301-1/+30
| | | | | | | * Add 'save image' button to the lightbox * Fix types * Fix types
* Rework scaled dimensions and compression (#737)Ollie H2023-05-301-44/+0
| | | | | | | | | * Rework scaled dimensions and compression * Unbreak image / banner uploads --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix image sharing on iOS (#561)Paul Frazee2023-05-021-9/+39
|
* Android & visual fixes: color themes, repost icon, navigation, back handler, ↵Paul Frazee2023-04-241-13/+12
| | | | | | | | | | | | | | | | | | | | | etc (#519) * Switch android to use slide left/right animations on navigation * Bump the repost icon down by a pixel * Tune theme colors for contrast and darker bg on darkmode * Move back handler to a point in the init flow that leads to more consistent capture of events * Fix image share flow on android * Fix lint * Add todo about sharing not available * Drop the android slide animation because it's too slow * Fix 'flashes of white' in dark mode android
* Split image cropping into secondary step (#473)Ollie Hsieh2023-04-171-83/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split image cropping into secondary step * Use ImageModel and GalleryModel * Add fix for pasting image URLs * Move models to state folder * Fix things that broke after rebase * Latest -- has image display bug * Remove contentFit * Fix iOS display in gallery * Tuneup the api signatures and implement compress/resize on web * Fix await * Lint fix and remove unused function * Fix android image pathing * Fix external embed x button on android * Remove min-height from composer (no longer useful and was mispositioning the composer on android) * Fix e2e picker --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Introduce an image sizes cache to improve feed layouts (close #213) (#335)Paul Frazee2023-03-211-4/+5
| | | | | * Introduce an image sizes cache to improve feed layouts (close #213) * Clear out resolved promises from the image cache
* Implement image uploading in the web composerPaul Frazee2023-02-231-0/+178