PolyHunter

ImageCropDialog

Shared image upload and circular crop for avatars and guild logos. Choose PNG, JPEG or WebP, reposition and zoom, then save. The circular crop viewport matches the round result. PNG/WebP exports have transparent corners; JPEG keeps its source format and is displayed with a circular mask. Design pending owner reference.

Playground

Live preview

Crop result

Circular result

Upload and save an image to inspect the circular result.

Code

<ImageCropDialog
  kind="profile"
  open={open}
  onOpenChange={setOpen}
  onUpload={uploadImage}
/>

// The same dialog handles guild logos with kind="guild".

Used in

Includes use through shared UI components.

App