# Use visible data in .gif transparency as material

**URL:** <https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480>\
**Category:** Developers\
**Created:** [January 4, 2015, 2:04am UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480 "2015-01-04T02:04:57Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 4, 2015, 2:04am UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/1 "2015-01-04T02:04:57Z")

</div>

I have a .gif image with a picture of a lake and a transparent background. I need to make the visible shape (the lake) a surface that is extrudable in Sketchup Make.

Any ideas on how to do that?

---

<div class="post-metadata">

**Author:** ![Cotty](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cotty/32/251290_2.png) [@Cotty](https://forums.sketchup.com/u/Cotty)\
**Post date:** [January 4, 2015, 8:48am UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/2 "2015-01-04T08:48:19Z")

</div>

It’s difficult to help without seeing the problem, but…

Have a look at “ImageTrimmer” as a part of TIGs [SKMtools](http://sketchucation.com/pluginstore?pln=SKMtools).

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 4, 2015, 11:20am UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/3 "2015-01-04T11:20:27Z")

</div>

GIF is not a directly supported image format in SketchUp.  
However, a PNG file can also support transparency etc.  
My ImageTrimmer will indeed trim off the transparent parts of a PNG image.  
BUT remember that even slightly transparent pixels are removed - so I recommend that you opened the image in say Gimp or PS, then save as a PNG, crop the image as small as it can be [this improves processing time as all pixels will be examined, even when transparent so they will be ignored…  
Then flatten the image to remove all transparency.  
Add back an alpha transparency layer.  
Use the magic-wand to select the unwanted background pixels [usually turned black after flattening] and them.  
Re-save/export as a PNG.  
Use that as an Image in SketchUp.  
Use ImageTrimmer on it and it makes it a component with the unwanted background parts removed…

If you can post [attach] the GIF so we have a better idea of what is involved…

---

<div class="post-metadata">

**Author:** ![Cotty](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cotty/32/251290_2.png) [@Cotty](https://forums.sketchup.com/u/Cotty)\
**Post date:** [January 4, 2015, 11:35am UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/4 "2015-01-04T11:35:03Z")

</div>

> [@TIG](#):
>
> GIF is not a directly supported image format in SketchUp.

I’ve tried with a GIF before my answer successfully, I’ve attached my test GIF.

---

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 4, 2015, 3:02pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/5 "2015-01-04T15:02:22Z")

</div>

Here is a png

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 4, 2015, 3:04pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/6 "2015-01-04T15:04:36Z")

</div>

and here is a gif

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 4, 2015, 6:00pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/7 "2015-01-04T18:00:01Z")

</div>

[quote=“Cotty, post:4, topic:5480”]  
I’ve tried with a GIF before my answer successfully, I’ve attached my test GIF.  
[/quote] BUT GIF is NOT a support Import \> Image File format on PC [I know you can get it in by devious means…]  
How did you get it into you Model ?

---

<div class="post-metadata">

**Author:** ![Cotty](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cotty/32/251290_2.png) [@Cotty](https://forums.sketchup.com/u/Cotty)\
**Post date:** [January 4, 2015, 6:29pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/8 "2015-01-04T18:29:39Z")

</div>

It wasn’t in the import filetype list, but I used “all supported image types” and it worked…

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 4, 2015, 6:34pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/9 "2015-01-04T18:34:37Z")

</div>

It’s long been a weirdness of SketchUp !  
You can drag+drop the PNG but not the GIF…  
Here’s my comments on the supplied PNG…  
  
I’ll leave the ImageTrimming to the OP…  
Note that ‘Simplifying’ will hang SketchUp as the form is too complex… so Cancel that final step…

---

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 4, 2015, 8:34pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/10 "2015-01-04T20:34:12Z")

</div>

You were able to do what I need but when I try it there is an error. Here is what happens:  
Create a new page in SU  
Import the PNG image  
Save the document  
Select the imported image  
Click on Tools-\>ImageTrimmer  
After about 3 seconds the error pops up.  
  
What do you do differently?

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 4, 2015, 10:19pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/11 "2015-01-04T22:19:11Z")

</div>

I just downloaded the PNG file that you had you attached.  
That had transparent pixels forming the ‘background’.  
When Imported as an Image it worked just fine with ImageTrimmer…  
Try downloading your own file, importing it as an image, and test again,

* * *
 If you get stuck I can send you the ‘fixed’ SKP file… BUT I want YOU to do it yourself…

---

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 4, 2015, 10:52pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/12 "2015-01-04T22:52:35Z")

</div>

I increased the color depth from 256 colors to 16m colors. I can now import the png and use the image trimmer. It asks several questions:  
Make component Stand Up? y/n  
Flatten the PNG texture? y/n  
Delete Original Image y/n  
Delete ImageTrimmer temporary files? y/n  
Image Trimmer Simplifier Factor 2.0 OK/Cancel

I select No on everything and then cancel the simplifier.  
I double click the image and extrude it but the whole rectangle extrudes.

Still confused.

---

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 4, 2015, 10:55pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/13 "2015-01-04T22:55:16Z")

</div>

Here is the result of the process I just posted

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [January 4, 2015, 11:22pm UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/14 "2015-01-04T23:22:27Z")

</div>

I just downloaded your PNG from this thread… and used it in the Model.  
It worked just fine as an Imported Image when used with ImageTrimmer.  
Why did you feel the need to interfere with it ??  
Retry with the original…

Try downloading your very own PNG and using that…  
[http://forums.sketchup.com/uploads/default/2859/4bafb0565009e869.png](http://forums.sketchup.com/uploads/default/2859/4bafb0565009e869.png)  
It works just fine for me, provided that I skip the ‘Simplify’ step at the end, simply because it’s too complex an outline…

---

<div class="post-metadata">

**Author:** ![mgauthier711](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mgauthier711/32/2853_2.png) [@mgauthier711](https://forums.sketchup.com/u/mgauthier711)\
**Post date:** [January 5, 2015, 1:34am UTC](https://forums.sketchup.com/t/use-visible-data-in-gif-transparency-as-material/5480/15 "2015-01-05T01:34:11Z")

</div>

Yes, it worked for me too. I must have changed the png I was playing with.

Thank you very much for helping with this.
