Screenshot distorts when compiling a latex document with it #3847
Labels
Bug
It's a bug
Good first issue
Issues labeled as such are a good way to get use to the codebase. Ask for help if needed.
Flameshot Version
Flameshot v12.1.0 (7aa69e4)
Compiled with Qt 5.15.16
flameshot-git from AUR
Installation Type
User repository (AUR)
Operating System type and version
Up to date Arch linux
Description
Images taken with flameshot distorts when I include it in a latex document and compile it with pdflatex or lualatex. It also happens when including a image into a md file and converting it to a PDF using pandoc.
I guess it's some kind of metadata issue as it's fixed when converting the image with
convert image.png -strip -density 300 converted.png
metadata of original image `identify -verbose image.png`
metadata of converted image `identify -verbose converted.png`
Steps to reproduce
Download: as image.png

run

convert image.png -strip -density 300 converted.png
on that image or download: as converted.pngcreate a main.tex file with the content:
run
lualatex main.tex
the resulting PDF has one distorted and one correct imageAlternative using pandoc:
Create a md file containing:
and run
pandoc test.p.md -o test.p.pdf
Screenshots or screen recordings
Latex Output

Pandoc Output

System Information
operating System
Arch linux 6.13.2-arch1-1
Monitor Config
DP-0 connected 1080x1920+5760+120 left (normal left inverted right x axis y axis) 527mm x 296mm
DP-2 connected 1920x1080+0+540 (normal left inverted right x axis y axis) 527mm x 296mm
DP-4 connected primary 3840x2160+1920+0 (normal left inverted right x axis y axis) 710mm x 400mm
Windows manager
Xorg, Qtile
The text was updated successfully, but these errors were encountered: