Tags: scieloorg/packtools
Tags
Fix ValueError: image has wrong mode in thumbnail generation (#1128) * Initial plan * Fix ValueError: image has wrong mode in thumbnail generation Convert images with unsupported PIL modes (P, CMYK, I, F, 1, LA, PA) to RGB or RGBA before calling thumbnail() in get_thumbnail_bytes(). This prevents the ValueError that occurs when PIL tries to resize images with these modes using high-quality resamplers. Co-authored-by: robertatakenaka <[email protected]> * Improve thumbnail tests: use 300x300 images and assert JPEG output Use image dimensions larger than thumbnail_size (267x140) to ensure the resize path is exercised. Assert the result is valid JPEG with dimensions bounded by thumbnail_size. Co-authored-by: robertatakenaka <[email protected]> * Simplify mode normalization: single rule converting to RGB Remove LA/PA special-casing since _get_bytes() always converts to RGB before saving. Add comment explaining why the conversion is needed. Co-authored-by: robertatakenaka <[email protected]> * Extract _normalize_mode() helper and reuse in both create_thumbnail() and get_thumbnail_bytes() Co-authored-by: robertatakenaka <[email protected]> * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: robertatakenaka <[email protected]> Co-authored-by: Copilot <[email protected]>
Adicionar argumentos advice_text e advice_params em build_response (#… …1080) * Initial plan * Replace format_response with build_response in article_abstract.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in article_and_subarticles.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in article_license.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in article_xref.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in fig.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in journal_meta.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in metadata_langs.py Co-authored-by: robertatakenaka <[email protected]> * Replace format_response with build_response in tablewrap.py Co-authored-by: robertatakenaka <[email protected]> * Fix advice_text and advice_params parameterization in validation modules Co-authored-by: robertatakenaka <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: robertatakenaka <[email protected]>
Corrige local do menu superior esquerdo (#1074) * feat(htmlgenerator): add article-section-header reusable template * refactor(htmlgenerator): update article layout grid and responsivity * refactor(htmlgenerator): use section-header template in references * refactor(htmlgenerator): use section-header template in data availability * refactor(htmlgenerator): use section-header template in history section * refactor(htmlgenerator): use section-header template in publication dates * refactor(htmlgenerator): use section-header template in abstracts * Atualiza css obtido do opac_5 * feat(ui): add scrollbar-gutter stable to modal-dialog-scrollable * fix(ref): remove redundant div wrapper in article-text-ref * refactor(abstract): use article-section-header template for consistency
Pagina artigo - acessibilidade - Acessibilidade e Semântica: Implemen… …tação de ARIA Labels, Navegação Estruturada e Ajustes de Hierarquia (#1073) * fix: adiciona âncora de nome ao material suplementar para melhorar navegação interna * fix(html): ajusta hierarquia semântica de títulos de seção (h4 para h3) * feat(accessibility): implementa aria-describedby para elementos gráficos com long-desc * feat(accessibility): implementa aria-label dinâmico e multi-idioma para links externos - Adiciona termos de interface para 'acesso', 'nova aba' e 'recurso externo' em config-labels.xml. - Aplica aria-label informativo em licenças, DOIs, links genéricos e perfis de contribuidores. - Garante conformidade com WCAG informando comportamento de abertura de janela via leitores de tela. * style: remove regras de CSS não utilizadas em html-modals-contribs * refactor(nav): melhora semântica da navegação do artigo com <nav> e labels
Adicionar chave text em Abstract.data (#1072) * Initial plan * Add text property to Abstract.data with sections and non-sections support Co-authored-by: robertatakenaka <[email protected]> * Refactor text property to avoid unnecessary list conversion Co-authored-by: robertatakenaka <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: robertatakenaka <[email protected]>
Cria deprecated_sps_pkg_name para manter acessível a versão anterior … …do nome do pacote (#1065) * Add deprecated_sps_pkg_name properties to XMLWithPre - Add deprecated_sps_pkg_name_fpage: formats fpage without underscore before seq - Add deprecated_sps_pkg_name_suppl: returns raw suppl value (not prefixed with 's') - Add deprecated_sps_pkg_name: builds package name using deprecated format * Expose deprecated_sps_pkg_name in PidProviderXMLAdapter * Adiciona test_xml_sps_lib
PreviousNext