Page 1 of 1
Convert a pattern to an image with RLE2PNG
Posted: December 28th, 2021, 3:12 pm
by Book
Here's a free tool:
https://golhobby.com/tools/rle2png.htm
Enter an rle in the textarea. Click a button. Get a png file to save.
Re: Convert a pattern to an image with RLE2PNG
Posted: December 28th, 2021, 7:50 pm
by hotdogPi
Why not SVG?
Re: Convert a pattern to an image with RLE2PNG
Posted: December 30th, 2021, 4:40 pm
by Book
This is a tool primarily designed to make it quick and easy to get the static image for a pattern infobox in the wiki. The wiki likes PNG files.
Re: Convert a pattern to an image with RLE2PNG
Posted: January 7th, 2022, 2:32 pm
by Book
hotdogPi wrote: December 28th, 2021, 7:50 pmWhy not SVG?
RLE2SVG:
https://golhobby.com/
Re: Convert a pattern to an image with RLE2PNG
Posted: March 9th, 2022, 9:26 pm
by 77551enpassant
Is there a tool to do this with bigger image sizes? It only goes up to 512x512 and I just want a quick way to convert an RLE into a PNG file.
Re: Convert a pattern to an image with RLE2PNG
Posted: March 9th, 2022, 9:54 pm
by Book
77551enpassant wrote: March 9th, 2022, 9:26 pm
Is there a tool to do this with bigger image sizes? It only goes up to 512x512 and I just want a quick way to convert an RLE into a PNG file.
To be clear, the max. image size is 512x512, not the bounding box.
I didn't want to have larger images to avoid them being uploaded to the wiki.
Re: Convert a pattern to an image with RLE2PNG
Posted: March 9th, 2022, 10:08 pm
by yujh
You might want to try giffer.pay or giffer.lua. They support arbitrarily large gifs(can be stationary, so you can convert them to png)
Re: Convert a pattern to an image with RLE2PNG
Posted: March 10th, 2022, 10:30 am
by rowett
You can also do similar in LifeViewer:
Code: Select all
x = 8, y = 12, rule = B3/S23
b2o2b2o$3b2o$3b2o$obo2bobo$o6bo2$o6bo$b2o2b2o$2b4o2$3b2o$3b2o!
[[ THEME Inverse GRID GRIDMAJOR 0 AUTOFIT ]]
Use
Settings->
Pattern->
Save Image (hotkey
O).
Re: Convert a pattern to an image with RLE2PNG
Posted: March 10th, 2022, 3:51 pm
by otismo
Hey Wonderful Persons -
Thank You for all the great
Image Handling Software !
Cheer Up !
Re: Convert a pattern to an image with RLE2PNG
Posted: January 19th, 2023, 4:38 am
by Sokwe
This appears to be an issue stemming from RLE2PNG. Each on cell is placed one pixel too high, so it overlaps part of the border while leaving a white line at the bottom of the cell.
Also, the grid lines are slightly darker where the horizontal and vertical lines overlap. This isn't really a problem, but I personally prefer solid-color grid lines.
Re: Convert a pattern to an image with RLE2PNG
Posted: January 19th, 2023, 2:51 pm
by Book
Sokwe wrote: January 19th, 2023, 4:38 am
This appears to be an issue stemming from RLE2PNG. Each on cell is placed one pixel too high, so it overlaps part of the border while leaving a white line at the bottom of the cell.
Should be fixed now. Walrus img has been redone and uploaded.
Re: Convert a pattern to an image with RLE2PNG
Posted: October 27th, 2024, 8:25 am
by dvgrn
The question came up on Discord this morning, as to what the best way to produce LifeWiki-compatible images.
On September 7 I tried emailing Book to see if golhobby.com might be coming back online at some point -- but didn't hear anything back.
Someone could certainly go through and rescue the source code from golhobby.com via the Internet Archive -- looks like it's probably all out there -- and get it hosted in some new location. In the absence of that happening, it looks like maybe LifeViewer is currently the best bet for
easy standardized PNG generation.
Cliff notes: go to conwaylife.com and click
Show Advanced Options, paste in your RLE, click
Update LifeViewer, add a line like this
Code: Select all
[[ THEME Inverse GRID GRIDMAJOR 0 AUTOFIT ]]
then probably replace the "AUTOFIT" above with an appropriate exact integer zoom , like
Code: Select all
x = 8, y = 12, rule = B3/S23
b2o2b2o$3b2o$3b2o$obo2bobo$o6bo2$o6bo$b2o2b2o$2b4o2$3b2o$3b2o!
[[ THEME Inverse GRID GRIDMAJOR 0 Z 36 ]]
Then choose
Settings->Pattern->Save Image -- hotkey
o (lowercase, not uppercase!).
If you don't like the image dimensions, try using the LifeViewer below to get a square popup window --
Code: Select all
x = 8, y = 12, rule = B3/S23
b2o2b2o$3b2o$3b2o$obo2bobo$o6bo2$o6bo$b2o2b2o$2b4o2$3b2o$3b2o!
[[ THEME Inverse GRID GRIDMAJOR 0 Z 36 POPUPWIDTH 480 POPUPHEIGHT 480 ]]
-- or to make adjustments to the dimensions, reply to this email (without actually posting anything), change the settings above and hit
Preview. 480 is the minimum width for me, but it's possible your mileage may vary -- there are some dependencies on hardware and browser settings, but the details escape me at the moment.
It all adds up to being a little bit awkward, so I hope someone does rescue the golhobby tools at some point!
Re: Convert a pattern to an image with RLE2PNG
Posted: October 29th, 2024, 12:02 pm
by rowett
From LifeViewer build 1205 pressing the
; (semi-colon) key will take a screenshot with the following properties:
- Inverse Theme
- Grid lines on with no major grid lines
- Integer zoom