keogram --image-expand #909
-
Hello, I was looking to make my keograms wider and came across the wiki section describing the use of the keogram executable. keogram -d imagedir -e ext -o outputfile [KEOGRAM_EXTRA_PARAMETERS] -x | --image-expand : expand image to get the proportions of source I tried: and ./keogram -d ./images/20220104/ -e jpg -o ./images/20220104/keogram/keogram-20220104-wide.jpg --image-expand --rotate 0 --font-size 1.0 --font-line 1 --font-color '255 255 255' along with variations using "-x" instead of --image-expand. keogram executes and generates jpg output; however, image is still 759 x 976 (tall & skinny). Original jpgs are 1304 x 975. I'm presuming there is an issue with my syntax. Thanks, Paul |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 9 replies
-
@pablo-blake Try creating a directory called allsky/images/test, then copy a half-dozen images from yesterday (allsky/images/20220111) to the "test" directory". Then remove "--image-expand" from the KEOGRAM_EXTRA_PARAMETERS, then run |
Beta Was this translation helpful? Give feedback.
-
@pablo-blake Sorry for the late response. I didn't make the changes to keogram so am not very familiar with it.
@AndreasLMeg, did you make the --expand-image changes to keogram.cpp? |
Beta Was this translation helpful? Give feedback.
-
@pablo-blake yes i made this extension "expand". Sorry, I'm a bit stressed and can't take care of it right away. After a quick read, I still can't understand your problem (English is not my mother tongue) But I'll look at that over the weekend |
Beta Was this translation helpful? Give feedback.
-
this code change will bring you better results. (untested) Is it possible for you to test this code change ?
|
Beta Was this translation helpful? Give feedback.
-
@pablo-blake With this change I have now limited the minimum size to 80% of the original image. That gives very nice results. |
Beta Was this translation helpful? Give feedback.
-
@pablo-blake PR is merged #964 With this change you will get other results: min. size = 1304 *0.8 = 1043 |
Beta Was this translation helpful? Give feedback.
-
@pablo-blake With change (min=2) you will get other results: but for long nights/shorter intervalls/more images you may have the problem with too wide images I think my solution (#964) is the better compromise to get nice pictures (not too thin and not too wide) |
Beta Was this translation helpful? Give feedback.
@pablo-blake @EricClaeys
this code change will bring you better results. (untested)
Is it possible for you to test this code change ?