![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^7: About GD Image Data Output Methodsby BrowserUk (Patriarch) |
on Jun 07, 2015 at 21:27 UTC ( #1129383=note: print w/replies, xml ) | Need Help?? |
some explanations about how your code works. Both formats are very simple, uncompressed files, with almost the same data format; which makes conversion simpler. I detailed the gd format header in Re: About GD Image Data Output Methods. I used this for the bmp format details. Hopefully these comments will explain the rest.
Of course, the code is crude as .bmps have a multitude of other possibilities, and (as you've seen) I don't even check for truecolor .v. palette in the gd format; but the intention was to give you something that did the job, not duplicate the functionality of image conversion software. It wouldn't be too hard to handle palette images; but I don't think it is necessary for your purpose. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In Section
Seekers of Perl Wisdom
|
|