Consider adopting an image-format-per-plugin model
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- python
- Domínio
- computer-vision
Direção de pesquisa
Begin by comparing Pillow's current all-in-one distribution with the previously used pillow-avif-plugin model, including the stated footprint and security concerns. Done would require a maintainer decision on whether and how to adopt a separate-plugin policy; this issue names no files or tests.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Pillow's current model of all image formats in one package means that Pillow's footprint will inevitably grow boundlessly. The 10.1.0 Linux wheels were ~3.5MB, 10.2.0 went up to 4.5MB then 11.3.0 jumped all the way up to ~6.5MB for AVIF support (and these are compressed sizes – the installed footprint is worse). For anyone not using the new image formats and where a small footprint is coveted (serverless lambdas, small end user applications, services shipped as Docker images), every new addition is also a large regression.
From a security perspective, a new unneeded format is also a choice between an increased surface area of attack or squatting on old versions of Pillow – both of which are obviously bad. (Being able to limit formats using Image.open(untrusted_content, formats=["JPEG", "PNG"]) helps but it's not really enough that I'd feel comfortable ignoring a CVE in libavif.)
I'm aware that pillow can be built without support for some formats by building from source or just by deleting bits of the package post-install but neither are appealing options and they both get much worse if you want all the files on a server to come from say RPMs for better efficiency and security auditing.
I was using the pillow-avif-plugin in one of my projects for a while before it got merged into pillow. I thought it was a really good model. Anyone who didn't need AVIF support didn't have to pay for its large footprint and anyone who did only had to add one import pillow_avif and an extra item to their dependencies to get it. The integration felt very seamless.
Would you consider adopting a policy whereby all new and/or large and/or niche and/or complex formats are permanently kept as separately distributed pillow_$format_plugin wheels rather than merged into pillow itself?
- Linguagem predominante
- Python
- Estrelas
- 14k
- Forks
- 2.6k
- Merge médio
- 1d 1h
- PRs com merge (30d)
- 205
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python-pillow/Pillow
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
python-pillow/Pillow#10590 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
python-pillow/Pillow#10589 ·
Mantenedores costumam responder em até 1 dia
-
Sun raster files with RLE encoding and odd-width rows decode shiftedTalvez já em andamento @PerryLink assumiu há 21 dias. Aberta🤖-assisted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
python-pillow/Pillow#10370 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Warn that pre-applying arabic_reshaper + python-bidi corrupts text on a Raqm buildTalvez já em andamento @Syamjith-NK assumiu há 85 dias. AbertaDocumentation Font Rendering PNG Third Party Framework
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
python-pillow/Pillow#9907 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Example code in ImageText documentation makes incorrect use of get_bbox()Talvez já em andamento @mmporong assumiu hoje. AbertaDocumentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 25/100
python-pillow/Pillow#10583 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de python-pillow/Pillow
Issues semelhantes
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finiteTalvez já em andamento @leninworld assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
DoubleML/doubleml-for-py#471 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 2 dias
-
[Bug] Default key routing (JavaStringHash) picks a different partition than the Java client for about half of keysTalvez já em andamento @0z5a assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
apache/pulsar-client-go#1575 ·
Mantenedores costumam responder em até 2 dias