Search found 20 matches
- 2019-07-19T09:15:51-07:00
- Forum: Users
- Topic: how to achieve watercolour map effect?
- Replies: 6
- Views: 10302
Re: how to achieve watercolour map effect?
I suspect the effect shown at http://maps.stamen.com/watercolor/#12/37.7706/-122.3782 of water and land is from scanned watercolor images. But how would they go about applying it to data from open street map? If you read their license it says they use open street map. Is there no simple way of ...
- 2019-07-19T08:24:37-07:00
- Forum: Users
- Topic: how to achieve watercolour map effect?
- Replies: 6
- Views: 10302
Re: how to achieve watercolour map effect?
In the example, the water is replaced by a tiled image. We can see the repeated pattern. Where does the pattern come from? I would do it with fractal noise (aka Perlin noise). See Fractal noise . But I expect a simpler method, probably based on plasma, could work. What about the land? Did you have ...
- 2019-07-19T03:36:05-07:00
- Forum: Users
- Topic: how to achieve watercolour map effect?
- Replies: 6
- Views: 10302
how to achieve watercolour map effect?
I was looking at this website which has watercolour style maps: maps.stamen.com/watercolor Here is an example of New York http://i68.tinypic.com/16k42uw.png I note that the website relies on openstreetmap for it's initial map images, which it then converts into watercolor maps. I have played about ...
- 2016-11-12T11:13:28-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
Thank you so much for all your help. This following workflow seems to work quite well, . The left is processed first and then the right, with the final results in a folder called output I also have the script delete all the source image files when processing is complete. Here are the scripts: start ...
- 2016-11-11T12:09:37-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
Thank you for your explanation for processing the large images
Would you mind showing me how to do this with the code I have posted, as I have read up on for loops and can't seem to get this working.snibgo wrote: For applying a script to multiple files, use a "for" loop.
- 2016-11-11T05:29:55-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
This windows BAT works perfect for images with the punch holes on the left: convert 1.jpg -threshold 50%% -define connected-components:verbose=true -define connected-components:area-threshold=190 -define connected-components:mean-color=true -connected-components 8 t2.png convert 1.jpg ( t2.png -crop ...
- 2016-11-10T13:48:32-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
I reduced the component size threshold and that worked. Please see the final result, although it is not perfect and there are a few artifacts. Is there any way to solve this? http://www.pixhoster.info/f/2016-11/e8ebf9f653f51ab72b5581b1ad3f9ba0.png Also is there any way to get the script working with ...
- 2016-11-10T13:10:30-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
For testing I have now resized the page with punch holes on the right to 1241x1778 pixels (same size as left page). it still does not work. Here is the t2.png:
- 2016-11-10T11:52:20-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
As requested - Here is the starting image that caused the problem: http://www.pixhoster.info/f/2016-11/3353434c941529381788d7c67f86e25b.jpg This is the exact code I type in 3 stages: convert ^ 1.jpg ^ -threshold 50%% ^ -define connected-components:verbose=true ^ -define connected-components:area ...
- 2016-11-10T09:29:39-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
Something is going wrong when I try and do the right side. I have tried many files as an example for the right, but they always go wrong. The left works perfectly every time. I think it generates a wrong t2.png: http://www.pixhoster.info/f/2016-11/7a76b69fdcc58281ce6d681f7ce57372.png Also here is ...
- 2016-11-09T17:07:28-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
1. There are many methods. You can simply repeat the middle command, with "-gravity East" before the crop. The output of the first of these would be the input to the second. If I do this it takes about 10 minutes to output h.png: %IM%convert ^ punch_holes_Page_2.jpg ^ ( t2.png -gravity East -crop ...
- 2016-11-09T13:23:00-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
Thanks for all your help. I just have a couple more questions I am following these steps and it is working well: %IM%convert ^ punch_holes_Page_2.jpg ^ -threshold 50%% ^ -define connected-components:verbose=true ^ -define connected-components:area-threshold=190 ^ -define connected-components:mean ...
- 2016-11-09T13:21:01-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
- 2016-11-09T10:58:23-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
Okay. My scripts assume that you have installed ImageMagick (convert.exe, identify.exe, compare.exe) to a directory on your path, or that you have an environment variable called IM that contains this directory. Thank you so much, I did not realise this. I reinstalled imagemagick and selected ...
- 2016-11-09T10:45:23-07:00
- Forum: Users
- Topic: how to use ImageMagick to remove punch holes?
- Replies: 31
- Views: 20753
Re: how to use ImageMagick to remove punch holes?
Perhaps go back to a simpler solution. Just sample the colors in a small block of pixels in the corners or the sides of the image and get an average color (in this case "white"). (Or just get the average color of the left side of the image, since that is closer to the holes). Then once you have the ...