27

Steps for QGIS 3.6 A few things have been moved and renamed from QGIS 2.x (see below), this is how it works in 3.x: Open a new Print Layout (formerly "Composer"): Menu Project - New Print Layout Right click somewhere on the white empty page, click "Page Properties". In the right sidebar the "Item Properties" tab will be activated, modify the background ...


22

You have to click on the layer rendering arrow (see the bottom of your second image) to access the slider and other option. in QGIS 2 it was on by default, in QGIS 3 it's off by default...


20

As an alternative option, you can open Legend tab and select Opacity slider widget. It will add an opacity slider in the Layers panel.


17

You can use data defined properties for this. Use the style tab on the layer properties and click the expression button to the right of the color. In there you can use the function color_rgba( red, green, blue, alpha ) to create the color. All values need to be between 0 and 255. Example: color_rgba( 255, 0, 0, ( 1 - "transparency" ) * 255 ) This will ...


16

This is possible in QGIS using the print composer. You'll need to both: Remove the background color from the map item. This is done by unchecking the "background" option in the map item's properties. (The default is a white background) Set the page itself to a transparent style. This is done through the composition properties tab.


15

As a follow up to Matthias' answer, in QGIS >= 2.12 you can use a data defined fill color with the expression: set_color_part(@value, 'alpha', ( 1 - "transparency" ) * 255 ) What this expression does is takes the original polygon color (@value) , and replaces the alpha channel (opacity) with the value calculated from the field). This means you can set ...


13

You can set the page background to transparent by creating a transparent symbol and setting the page background to use that symbol: transparent_fill = QgsFillSymbolV2.createSimple({ 'outline_style': 'no', 'style': 'no'}) c.setPageStyleSymbol( transparent_fill ) There's also a few other things wrong with your script: First, mapRenderer = iface.mapCanvas()...


13

This was briefly mentioned in QGIS - Developer forum where you need to use QgsMapLayer::setCustomPropertylayer to enable the embedded widget for your layer. We can then add an itemAdded event so that whenever a layer is added, it will automatically be shown with the transparency widget. So you could use something like the following in the Python Console: ...


12

I found this other thread which was helpful How do I set layer transparency in QGIS 2.0 with Python? It seems like there should be a shorter and more efficient way, but I tested this and it works: print 'Start' active_layer = qgis.utils.iface.mapCanvas().currentLayer() raster_transparency = active_layer.renderer().rasterTransparency() ltr = ...


11

here's a better answer, use gdalbuildvrt with either srcnodata or vrtnodata flag: gdalbuildvrt -srcnodata "123 231 67" outfile.vrt input.tif If the next application in line doesn't understand .vrt, translate to a new tif: gdal_translate outfile.vrt final.tif


11

The easiest way is to edit the aplha for the fill


11

Make sure to set the format option of the L.TileLayer.WMS to image/png, as explained in the documentation. The default is to use .jpg for map image tiles, which is a image format which doesn't handle transparency. Leaflet does not override the format option depending on the value of the transparent option. e.g.: var wmsLayer = L.tileLayer.wms('http://...


10

A little python script like this would do it for layer in iface.legendInterface().layers(): layer.renderer().setOpacity(0.2) Just copy and paste that into the python console (which is shown via Plugins->Python console) and hit enter twice. The script will loop through all layers and set their opacity to 20%. For QGIS 3.x you need a slightly different ...


9

Some time ago I had a similar problem (How to change the symbology of selected features in QGIS). It seems that this features isn't available in QGIS 2.12 yet (https://hub.qgis.org/issues/12879), so you can achieve this effect using isselected function, available in Nathan's plugin qgsexpressionplus (https://github.com/NathanW2/qgsexpressionsplus). For ...


8

The following works in 10.2.1 and essentially turns the sketch hollow as suggested by Ian. As soon as you stop being in sketch mode it returns to your selected transparency. In the Editor toolbar go to Editor > Options and untick Use symbolized feature during editing.


8

Try replacing 'color':'#ffffff' with 'color':'0,0,0,0' The last zero is the alpha chanel which controls the level of transparency. So setting it to 0 will set the fill colour with an opacity of 0%. Tested with the following code: from PyQt4 import QtGui layer = iface.addVectorLayer("path_to_vector_layer", "layer_name", "ogr") myVectorLayer = ...


8

Your gdalinfo dump looks like the raster already has 4 bands and is interpreted as RGBA. This answer will assume you are starting from a 3-band RGB 8-bit/channel image. First create a single-band 8-bit image which has the desired alpha value (alpha 255 is fully opaque, 0 is fully transparent). You said you want about 20% transparency, so 80% opacity => ~200....


7

You can make transparency vary for each category using a field value if you click the Advanced button in the Symbology tab (EDIT: available in 10.0). Now you have to see what's more convenient between adding and populating a field with the percentage, and duplicate the layer as @artwork proposes. The first option will surely save extra work if you need to ...


7

I found a solution to my problem: In the transparency tab use the mouse selection tool to add a value from the screen by interactively clicking on a pixel. This will automatically add a new line in the table to the left showing the band characteristics of this pixel. Clicking on apply will then set to transparent all the pixels in the raster with the same ...


7

Sorry for the short answer but I suppose that simply adding an alpha channel might do the trick. At least I could make an output that is semi-transparent in QGIS with the following command. gdal_rasterize -of gtiff -ot byte -co alpha=yes -burn 255 -burn 0 -burn 0 -burn 100 -ts 500 500 -l test test.shp test.tif


7

ArcMap won't do that for a single layer - transparency is handled for the entire symbology as a unit, not in pieces. So, the solution is to just have two copies of the layer in your table of contents. One with the outline and no fill, the other with no outline and a colored fill with whatever transparency you are looking for. Just make sure the layer with ...


7

1. Method To remove the black border temporarily in QGIS, you can set the "Additional no data value" in Layer properties -> Transparency to 0 (or 000000). If the border is not 100% black you can use the information tool to find out which color you need to set to transparent. If the border is not evenly black, you can use the custom transparent pixel list in ...


7

In the QGIS main project area duplicate your layer. Set the style of one to be 0% transparency, and unclick the layer so it isn't visible. Set the other layer to be 60% transparency as you want it, and have that visible. Then in print composer, add your map and add the legend, you should see both layer legends with their respective styles. Turn off '...


6

Another option, requiring no python, is to simply edit you project file. Raster layer transparency is set with: rasterrenderer opacity="1" You can open your project file .qgs in a text editor and find and replace: rasterrenderer opacity="1" With: rasterrenderer opacity="0.73"


6

The approach you you mention does sounds unorthodox, it is, however, the only way you can do it in ArcGIS. It is actually more efficient doing this inside ArcMap as you suggest as oppose to a 3rd party image editing software outside of ArcMap. The benefit is that you don't have to post-process your cartography in a another application and it is therefore ...


6

You asked that ages ago but, maybe useful for some, as not answered yet... You said that you are keep your adnotation in the map but if you save them in a database You will have full control over the adnotation, including transparency is it something you have been looking for??


6

As far as I know, there is no way to make text transparent in ArcMap. My suggestion for a workaround would be to export to PDF and then add the watermark using Adobe. That's what I do to add watermarks to my maps. The limitation of this would be that it requires Adobe Standard I believe. If you don't have Adobe Standard, here is a link with some other ...


6

Try using an annotation feature class for the 'DRAFT' text, manually editing the text, and setting the transparency for the layer at 50%. This allows you to see the features under the text, and it is not necessary to export the document for use in another program.


6

I would use the clip to shape option in the data frame properties. Have two copies of your basemap in the Data Frame one with no transparency which you clip to your town border using the option below. Then make your second one transparent and sitting below the first basemap and exclude it from the clip using the Exclude Layers button. Below is a very ...


6

Another nice work around I regularly use to insert my company's logo with a transparent background is to add an additional dataframe in layout view. Then bring the transparent background tif or png in as a layer, zoom to layer, go to the symbology tab in layer properties change Stretch to none and Display background value (R,G,B, / 0,0,0) as hollow. Ensure ...


Only top voted, non community-wiki answers of a minimum length are eligible