claviska / claviska/SimpleImage

Antialias support for line, ellipse, polygon, etc.

Open
#160 2 comments 0 reactions 0 assignees View on GitHub
Feature Help Wanted
Dominant language
PHP
Stars
1.4k
Forks
377
PR merge metrics
No merged PRs in 30d

Description

I'd love to add antialiasing to all drawing methods. The [`imageantialias`](http://php.net/manual/en/function.imageantialias.php) method states it works for lines and ellipses, but it doesn't support alpha components.

I would prefer a solution that works for all shapes, although it may not be possible without writing our own shape methods (prefer not to do). This may simply be a limitation of GD.

- [ ] Arc
- [ ] Ellipse
- [ ] Line
- [ ] Polygon
- [ ] Rounded rectangle
- [ ] Supports `$thickness`
- [ ] Supports `$alpha` (transparency)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the drawing methods for arcs, ellipses, lines, polygons, and rounded rectangles, then review PHP GD's imageantialias behavior and its alpha limitations. Done means antialiasing works across the listed shapes while preserving thickness and transparency support, or the GD limitation is documented with a clearly scoped alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.