alpha
Login
or
Join now
jack.is
/
leaflet
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
a tool for shared writing and social publishing
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
leaflet
/
supabase
/
at
main
1 folder
7 files
Tyler Lawson
fix: use resize=contain in supabase image loader to prevent crop (#301)
7w ago
007c7a40
migrations
drop bsky_profiles foreign key constraint on comments
1 month ago
browserClient.ts
fix: use resize=contain in supabase image loader to prevent crop (#301) The crop in #286 was in the image *serving* path, not upload. The next/image custom loader (supabase-image-loader.js) hit Supabase's render/image endpoint without a resize param, so it defaulted to resize=cover. Because next/image only passes `width` to a custom loader (never height), imgproxy filled the missing height with the source height and cropped the width to fit the box — chopping the right side off large images. Verified against the reported image on prod (5712x4284) and locally: width=3840 -> cropped (full source height kept) width=2500 -> still cropped (clamping width alone does not help) width=3840&resize=contain -> correct aspect, no crop Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 month ago
config.toml
init
2 years ago
database.types.ts
remove bsky_profiles writes
1 month ago
pool.ts
increase max connections in pool
10 months ago
seed.sql
init
2 years ago
serverClient.ts
some small import optimizations
1 year ago
supabase-image-loader.js
fix: use resize=contain in supabase image loader to prevent crop (#301) The crop in #286 was in the image *serving* path, not upload. The next/image custom loader (supabase-image-loader.js) hit Supabase's render/image endpoint without a resize param, so it defaulted to resize=cover. Because next/image only passes `width` to a custom loader (never height), imgproxy filled the missing height with the source height and cropped the width to fit the box — chopping the right side off large images. Verified against the reported image on prod (5712x4284) and locally: width=3840 -> cropped (full source height kept) width=2500 -> still cropped (clamping width alone does not help) width=3840&resize=contain -> correct aspect, no crop Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 month ago