To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 13017
    img2sticker: Convert images into .ldr stickers —Timothy Gould
   Dear all, Following up from my (URL) teaser> the other day, I've 'completed' my software to convert image files into ldraw files for use in sticker making and written a little tutorial about getting it to work. (2 URLs) Here> is where you can (...) (19 years ago, 29-Jun-05, to lugnet.cad, lugnet.trains, FTX)
   
        Re: img2sticker: Convert images into .ldr stickers —Tim David
     (...) Looks interesting, I'm going to give it a go, might be a steep learning curve tho! cheers Tim (19 years ago, 29-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Tim David
     Right, suffered my first set-back :( I've downloaded and installed Perl OK (I'm using Windows XP) I downloaded and unzipped img2sticker to a folder called D:Img2Sticker but then I can't work out how to install it My Ldraw directory is D:Program (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
     (...) OK. I'm not 100% sure where that error comes from... could you run 'install.pl [LDRAWDIR] 2>err' and email me the err file that comes out. The last two lines indicate success (which they should do more obviously) while the others seem to be a (...) (19 years ago, 30-Jun-05, to lugnet.cad)
   
        Re: img2sticker: Convert images into .ldr stickers —Travis Cobbs
     (...) I have a comment on the tutorial. It's probably easier to let your image editing program get rid of the antialiasing. If you're using Photoshop or Photoshop Elements, all you have to do is change the image mode to indexed color, then select a (...) (19 years ago, 29-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
      (...) Wow! Such a simple and practical solution. Added to the start of the tutorial. Tim (19 years ago, 29-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Ross Crawford
     (...) Also, (URL) Bob Kojima's Bricksaic> provides a very easy way to convert images to the LDraw colour palette. ROSCO (19 years ago, 29-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
     (...) I suspect that using this would be risky. My program actually implements a find-nearest colours routine but when dealing with aliased images, often the aliasing will come out to be grey, dark grey or even weirder colours (I match in HSV space (...) (19 years ago, 29-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Travis Cobbs
     (...) Just as a note, it's actually antialiasing, not aliasing. Aliasing (aka jaggies) is the problem that antialiasing solves. And you're right; it's very difficult to undo normally. On the other hand, for images that stickers are likely to be made (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
     (...) I did know that ;-) (and checked through all documents to make sure I had it right). I blame it on posting too long after I'd turned into a pumpkin. The thing is, anti-aliasing should be invertible if you know the routine used to perform it in (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Don Heyse
     (...) Hmm, I don't think so. Traditional antialiasing spreads the partial pixel errors from a line (or edge) into the adjacent pixels. In order to undo it you'd need to know where the line is, but that's the very information you're trying to recover (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
     (...) Strictly speaking though, (almost) any filter is invertible. Of course you do need to know what the original filter was which is easier said than done. (...) Although it even worse as the image has been stored a a jpeg which bleeds the colours (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Don Heyse
      (...) Yeah, but if you think of line antialiasing as a sort of blur filter, you'll notice the convolution kernel is directional. The blurring occurs perpendicular to the direction of the line. This implies a different filter for each line segment on (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
    
         Re: img2sticker: Convert images into .ldr stickers —Travis Cobbs
     (...) That may be true, but antialiasing isn't a filter in that sense. When applied to computer-generated graphics, it's calculated during rendering using information that isn't available in the final image. When aplied during image scaling (...) (19 years ago, 30-Jun-05, to lugnet.cad, FTX)
   
        Re: img2sticker: Convert images into .ldr stickers —Christopher Masi
     (...) Tim, I cannot get this installed. I am running Mac OS X 10.3.9, and every time I run the script, perl install.pl img2 it creates a directory but then says "Could not copy file at install.pl line 42." Line 42 (or the 42nd line that I came to (...) (19 years ago, 1-Aug-05, to lugnet.cad)
    
         Re: img2sticker: Convert images into .ldr stickers —danny staple
     (...) I suspect you will find on OS X, or Linux that you would need to modify copy for cp. It is probably better to use perls own interface to copying, and not the shell. The perl docs for this are all here: (URL) Cheers Orion (19 years ago, 1-Aug-05, to lugnet.cad)
    
         Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
     (...) Hi Orion, Thanks for that. Now I should be able to make the install program more platform independent (it was set to run on Linux or Windows but I forgot about OSX). Excellent! Tim (19 years ago, 1-Aug-05, to lugnet.cad)
   
        Re: img2sticker: Convert images into .ldr stickers —Elroy Davis
   (...) I've made a few attempts to use this, but I'm not having much luck. I've installed Perl, and I think I'm using the command line correctly. I keep getting the following though: "You do not have LDRAWDIR defined. This must be defined in order to (...) (19 years ago, 7-Oct-05, to lugnet.cad, FTX)
   
        Re: img2sticker: Convert images into .ldr stickers —Ross Crawford
   (...) LDRAWDIR is an environment variable which must be set to run the program. I assume img2sticker.pl uses the colours defined in ldconfig.ldr in that directory. To set it in XP: In Control Panel, choose "System" On the Advanced tab, click (...) (19 years ago, 7-Oct-05, to lugnet.cad, FTX)
   
        Re: img2sticker: Convert images into .ldr stickers —Elroy Davis
   (...) Thanks, that took care of it. I'm still having trouble though. Everything I convert, including the ghanlogo.bmp that came with the download, comes out messy triangles. Nothing really recognizable. I may have to play with this while I'm more (...) (19 years ago, 7-Oct-05, to lugnet.cad, FTX)
   
        Re: img2sticker: Convert images into .ldr stickers —Timothy Gould
   (...) The problem is that the triangulation routine is not very good. It can usually be tricked to find a triangulation at some point but basically it is just not very good at it. If I ever get around to finishing the C++ version it will do a much (...) (19 years ago, 7-Oct-05, to lugnet.cad, FTX)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR