# Image as texture

**URL:** https://discourse.paraview.org/t/image-as-texture/1686
**Category:** ParaView Support
**Created:** [April 17, 2019, 4:37pm UTC](https://discourse.paraview.org/t/image-as-texture/1686 "2019-04-17T16:37:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![marios\_geo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@marios\_geo](https://discourse.paraview.org/u/marios_geo)
#### Post date: [April 17, 2019, 4:37pm UTC](https://discourse.paraview.org/t/image-as-texture/1686/1 "2019-04-17T16:37:12Z")

</div>

Hi,

I am trrying to add a geotiff image to paraview. I read from other replies, but I still don’t get how to do it.  
I have a VTK file that looks like this

# vtk DataFile Version 3.0

BaseMap  
ASCII  
DATASET POLYDATA  
POINTS 4 float  
-804.52 51976.88 0.00 -804.52 7432.30 0.00 62262.81 7432.30 0.00 62262.81 51976.88 0.00  
POLYGONS 1 5  
4 1 2 3 0

This polygon, defines the area of the geotiff. I load the tiff image, but I can’t find how to embed that image to the plane.  
Any advise?

---

<div class="post-metadata">

### Author: ![marios\_geo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@marios\_geo](https://discourse.paraview.org/u/marios_geo)
#### Post date: [April 18, 2019, 11:46am UTC](https://discourse.paraview.org/t/image-as-texture/1686/2 "2019-04-18T11:46:27Z")

</div>

One follow up.

I plot the tiff. I know from the tiff (from gdal)  
x\_res, y\_res, ulx (lower x coordinate) and uly (lower y coordinate).

Thus, in the properties of the iamge, I use as scale the x\_scale=x\_res and y\_scale=y\_res (z\_scale=1)

And as origin x\_origin=ulx/(1-xres) and y\_origin=uly(1-yres).

This aligns the image perfectly, but I do not understand the math and why it is working 🙂
