Author Topic: BMP to XML (Aka importing drawings into PS)  (Read 6132 times)

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #15 on: March 26, 2014, 09:08:34 pm »
To say it bold: Your approach is mainly a waste of space. You are not even getting close to art like Dannae's drawings.

The elements of vector drawings are primitives like: line, curve, ellipse, rectangle... descriptions of whole shapes or parts of their appearance. And for convenience, text or symbols at positions.

They are not: dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot, dot ...

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #16 on: March 26, 2014, 10:54:53 pm »
You're missing the point. I don't want lines, bezier curves and whatever. I want pixels.

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #17 on: March 26, 2014, 11:34:13 pm »
I'm calling this victory.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #18 on: March 27, 2014, 12:00:56 am »
Well, fine, experiment succeeded. But don't make me buy that map. It will probably slow down the game each time I look at it?  :-\

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #19 on: March 27, 2014, 12:24:40 am »
It's not much bigger than normal books. ~20k characters.

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #20 on: March 27, 2014, 01:06:20 am »
And for those who are interested how this works: It takes your .bmp and for each non white pixel writes "''" (Two 's), for each white pixel it writes " ".

derula

  • Hydlaa Citizen
  • *
  • Posts: 409
  • Staying away because Talad asked nicely
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #21 on: September 28, 2014, 11:13:51 pm »
I'm calling this victory.

There wasn't even a battle.
You can't claim a victory when one of the contestants hasn't even shown up.

derula

  • Hydlaa Citizen
  • *
  • Posts: 409
  • Staying away because Talad asked nicely
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #22 on: September 29, 2014, 10:42:21 pm »
I override your victory claim with this proof-of-concept. (Being a proof-of-concept, it comes without any instructions, but basically: install ruby & rmagick; replace test.png with any png of your liking; execute convert.rb. If it dies with "too bad so sad," it means that the object limit is exceeded. Try shrinking the bitmap, or reducing the number of colors.)


derula

  • Hydlaa Citizen
  • *
  • Posts: 409
  • Staying away because Talad asked nicely
    • View Profile
Re: BMP to XML (Aka importing drawings into PS)
« Reply #23 on: September 29, 2014, 10:47:18 pm »
I have been informed by the wonderful person who drew that picture and took that screenshot for me that I should have given them credit. They also informed me that only n00bs double post. For my misdemeanor, I sincerely apologize. It will not happen ever again.
« Last Edit: September 29, 2014, 10:49:25 pm by derula »