So, what about resizing animated GIFs?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.7k
- Forks
- 386
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 3
Description
Hi,
I've used this Filter to resize images in custom FilterLoader
Maybe the problem is in my mac?
```
public function apply(ImageInterface $image)
{
$isAnimated = count($image->layers()) > 1;
if($isAnimated === true){
$image->layers()->coalesce();
/** @var ImageInterface $frame */
foreach ($image->layers() as $frame){
$frame->resize($this->size, $this->filter);
}
$image->layers()->merge();
} else {
$image->resize($this->size, $this->filter);
}
return $image;
}
```
With this config
```
liip_imagine:
driver: imagick
filter_sets:
default:
jpeg_quality: 90
png_compression_level: 9
animated: true
```
But, in the result i got the image with bad quality and not animated :) . Maybe I did something wrong?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the custom FilterLoader's apply method and reproduce the supplied configuration with the imagick driver and animated: true. Check the resulting GIF's frame count and quality against the input; done means resizing preserves the animation and produces acceptable quality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100