refactor: consolidate ImageHelper resize paths + drop unused validate() (#104) #117
Reference in New Issue
Block a user
Delete Branch "fix/imagehelper-consolidate-104"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finishes the remaining #104 cleanup (the dead-code/leak parts shipped earlier in PR #111).
resize()→ thin wrapper overresizeToSize()(which gained a$qualityparam). This removes ~80 lines of duplicated crop/resample/encode logic.resize(path)andresizeToSize(path, 1200, 630, '')compute the same output hash/path and write the same file, so behavior is unchanged.ImageHelper::validate()— no callers anywhere insource/.Net −130 / +11 lines,
php -lclean. No call-site changes needed (resize()/resizeForPlatform()signatures unchanged).Closes #104.
🤖 Generated with Claude Code