Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed doesn't parse RGB from srgba #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

myriky
Copy link

@myriky myriky commented Mar 27, 2017

i've figured out why doesn't parse png files.
cuz wrong REGEX.

$ convert '가나다라마법사.jpg' -resize 400x400 -format %c -dither None -quantize YIQ -colors 1 -depth 8 histogram:info:-
    135200: (141,146,140) #8D928C srgb(141,146,140)

===> it's ok. RGB decimals length is 6

but, png file

$ convert '간장공장공장장.png' -resize 400x400 -format %c -dither None -quantize YIQ -colors 1 -depth 8 histogram:info:-
    119600: (117,118,121,255) #757679FF srgba(117,118,121,1)

===> um.. RGB decimals length has 8 include alpha value.

i had fix wrong REGEX. please check it out. thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant