- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I suppose that's why EULAs have that bit about how the user shouldn't expect the software to actually work. Because it would be too reasonable.
Admin
Because a circle is represented by a center and a radius. A square is represented by two corners (because they are drawn as rectangles. (Or a corner, width and height). Clearly, using circles represents a savings of 25%. Efficiency is job one!
Also, figuring out the corners was probably too hard... the center point can just be the pixel coordinate, and a radius of 1.
Admin
Admin
I was half expected to see full page of "path" of single pixel (that's what you expect to see when converting raster/bitmaps to vector graphics.), but instead I find circles.
Oh mine...
Admin
Admin
Btw, I think Bakdar is the one who is responsible here for this hovac.
It's pretty well known that when raster / bitmap graphics is converted to vector graphics, it's going to be multiple times bigger than the original. Not to mention that you want SVG which is in XML. That's pretty non-sensible considering the picture is some random graphics that uploaded by user and you don't know what is the original format.
What Bakdar should ask is to preserve the original uploaded image file, or to ask them to save as higher resolution image.
Admin
Reminds me of another example of a poor specification leading to an unusable product.
A certain customer had specified a set of webpages including one where the user had to enter a phone number. Part of that required that the user enter the country code. This was to be done by selecting said area code from a drop-down. This was sorted in alphabetical order of country, but presented as the number (without the country to select from). So what we implemented was a drop-down containing a long list of numbers (how many is it? Of the order of 200 or so, I lose count nowadays) whose order was far from obvious. When we mentioned this to the customer, they insistedb that this was what they wanted.
Admin
*sswhipes, just there to squeeze the largest ammount of money outof a customer while doing the absolute minimum of work.
Admin
Depending on how the SVG was created that's not unreasonable. if you needed to have the polygon cut out of the circle for instance. Plus programs like Inkscape don't use use circle elements, instead just storing metadata in a path element about the arc. And inkscape is terrible at making paths workable for programming, paths moved outside of node editing with be a matrix translation, you have to enter node edit and select all nodes to edit the path coordinates directly.
Admin
No it isn't. It would be if a developer's superior tasked him to produce the graphics, but that's not what happened. In this story Jarvis is the point of contact and a lead developer. It was his job to either pass the actual work on to someone appropriate, or to inform the contact that they weren't equipped to do it. Instead he wasted the contact's time and implemented something useless on his own.
Admin
Are you sure we don;t work for same company ? Or use the same coders ? The app referred to above had an edit for the record and Country was a mandatory field. However, in creating the list for drop down, they used official country name rather than common country name. Had to look up "Republic of India".
Admin
+1. A truly legendary WTF.
Admin
Presumably Jarvis now works for a contractor servicing a government IT project? His next line is, "Although we've met your specification, you can put in a change request to produce high-resolution SVG's, billed at our additional out-of-spec work rates..."
Admin
I imagine the initially provided rasters were exactly what the users uploaded, so asking Jarvis to magically summon from somewhere higher resolution or vector alternatives was the real WTF and the result was quite logical.
And I knew what would happen from the first mention of using user-supplied images for print.
Admin
TRWTF is ImageMagick. Because I've just learned the hard way that when you try to convert anything to SVG using ImageMagick, you get the exact same bajillion of single-pixel circles like in the article. The reasonable lazy conversion would be embedded bitmap, of course.
Admin
something on this page reminds me of a story on a different site: someone complained that his printer was broken, it wouldn't print his banner. the real problem was that he had badly messed up the printer settings or the graphics setup...he was essentially trying to make a banner 10 feet high and 100 feet wide! the printer tech tried to explain this, but the customer was stubborn and a rock and less smart, and he kept demanding to "make it work with my settings"...