How to extend an Image from side to side softening the hard edge of image
Posted: 2017-07-24T11:55:01-07:00
Currently I am running the below command to set the format to png and make canvas 300 px larger on both sides of image, and to also remove the Black Background by setting it transparent, I found out that synchronize did not do what I wanted, but I still use it, what I need is a way that if this command does not complete, as it did last night when power went off longer then my battery backup lasted, that I do not have to start over, seeing how I am using *.jpg, if there is no way to do that, maybe I can call it from a bash script, but this is all in preparation for another operation, I want to extend the sides if the Corona of the Sun in image below, makes a hard edge as seen here, note that the top and bottom Corona are Minimal and do not always exist, and the side to side Corona also does not make a hard edge all the time, just parts of the year, and it might be on one side or the other or both, so really what I want is a Smudge of 10 px out to 300 px tapering as the example dose, and I was wondering if I can do this in one command, this takes a long time to render this many images, sorry if I give too much info or not enough, better too much then not enough is my thought.
I have an Animation of the Sun Series, as you can see, the Hard Edge does not look that good:
see https://www.youtube.com/playlist?list=P ... fvNkVm3m6c
As you can see from the Image below:
The Corona of the Sun has a hard edge on both sides sometime, sometimes they extend up and down, but not much, and the few times this did happen I fixed them by hand, but the side ones do not look good and there are too many to edit by hand.
What I want to do is soften the hard edge so it looks more like this:
I just did a fast Smudge by hand in GIMP, this was originally a Blender question, and then a GIMP question, still looking for a better way to do this.
Blender Thread
https://blender.stackexchange.com/quest ... e-of-image
GIMP Thread
https://www.gimp-forum.net/Thread-How-t ... e-of-image
My Original images are Public Domain images of the Sun from NASA AIA 193 https://sdo.gsfc.nasa.gov/data/aiahmi/ in 4096x4096 format jpg, just pick one with a Corona on but sides, and an Environment 360 degree image texture map of the Stars as background using Blender to alpha over the Sun, that is only shown for an Example and is not used in conversion, and I write and preform my own music.
There are over 33,333 images for one Year and I have over 6 years of images that I am working with, that is over 200,000 images, so I can not do this by hand in my lifetime since I am dying of Cancer my time is limited, I am old and have Arthritis as well, so it would be a very painful way to go out, and I might not finish it, so why start, but I wanted to finish this series, and go back and do years before the series started, which is 2010, so people can view the sun over a decade, but the hard edge looks bad, and I know there is a way to fix this, but I am not good enough at blender or Gimp to figure it out, I think I ask this question once a year, and try to figure out how to fix it, so far I end up not fixing it. My guess is that I need to write a script that takes the edges of the images and blurs or smudges it side ways in an oval shape, but I know even less about it when it comes to automating edits in gimp, then I do about Blender, not even sure it can be done, no idea how to do that, anyone have any ideas?
I originally did the video in 1080, now I want to render it in 2160 AKA 4K, since the originals are larger then the 3840, it should look good at 4k, but I want to fix this issue since it will take a long time to render all these images in Blender, and I want it to look Natural or Real, so even if all I can do is blur the hard edge, that would be an improvement.
Update: Running Linux Manjaro (Arch Linux Clone) with latest version of IM.
Thanks
Code: Select all
mogrify -synchronize -alpha set -transparent black -background transparent -gravity center -extent 4696x4096 -format png -path ../2016-png *.jpg
see https://www.youtube.com/playlist?list=P ... fvNkVm3m6c
As you can see from the Image below:
The Corona of the Sun has a hard edge on both sides sometime, sometimes they extend up and down, but not much, and the few times this did happen I fixed them by hand, but the side ones do not look good and there are too many to edit by hand.
What I want to do is soften the hard edge so it looks more like this:
I just did a fast Smudge by hand in GIMP, this was originally a Blender question, and then a GIMP question, still looking for a better way to do this.
Blender Thread
https://blender.stackexchange.com/quest ... e-of-image
GIMP Thread
https://www.gimp-forum.net/Thread-How-t ... e-of-image
My Original images are Public Domain images of the Sun from NASA AIA 193 https://sdo.gsfc.nasa.gov/data/aiahmi/ in 4096x4096 format jpg, just pick one with a Corona on but sides, and an Environment 360 degree image texture map of the Stars as background using Blender to alpha over the Sun, that is only shown for an Example and is not used in conversion, and I write and preform my own music.
There are over 33,333 images for one Year and I have over 6 years of images that I am working with, that is over 200,000 images, so I can not do this by hand in my lifetime since I am dying of Cancer my time is limited, I am old and have Arthritis as well, so it would be a very painful way to go out, and I might not finish it, so why start, but I wanted to finish this series, and go back and do years before the series started, which is 2010, so people can view the sun over a decade, but the hard edge looks bad, and I know there is a way to fix this, but I am not good enough at blender or Gimp to figure it out, I think I ask this question once a year, and try to figure out how to fix it, so far I end up not fixing it. My guess is that I need to write a script that takes the edges of the images and blurs or smudges it side ways in an oval shape, but I know even less about it when it comes to automating edits in gimp, then I do about Blender, not even sure it can be done, no idea how to do that, anyone have any ideas?
I originally did the video in 1080, now I want to render it in 2160 AKA 4K, since the originals are larger then the 3840, it should look good at 4k, but I want to fix this issue since it will take a long time to render all these images in Blender, and I want it to look Natural or Real, so even if all I can do is blur the hard edge, that would be an improvement.
Update: Running Linux Manjaro (Arch Linux Clone) with latest version of IM.
Thanks