API Pengembang
API Transformasi Gambar
Otomatiskan pengubahan ukuran, potong, paskan, putar, konversi format, kompresi, dan transformasi ZIP batch.
Titik akhir
POST /api/v1/transformmultipart upload + optionsGET /api/v1/transform?src=URL&w=&h=&fit=&format=&quality=remote source transformPOST /api/v1/batch-transformZIP upload (Pro)
Contoh: Transformasi Multipart
curl -X POST "https://cropresize.net/api/v1/transform" \
-F "file=@portrait.jpg" \
-F 'options={"w":600,"h":600,"fit":"cover","format":"jpeg","quality":88}'
Contoh: Transformasi URL
curl "https://cropresize.net/api/v1/transform?src=https://example.com/image.jpg&w=1024&h=1024&fit=cover&format=webp&quality=80"
Responsnya mencakup URL unduhan yang berumur pendek. File bersifat pribadi dan dihapus otomatis.