Skip to main content
12 votes
Accepted

Converting an Unicode's image into polygon data for an SVG

Import as FilledCurve: ...
Vitaliy Kaurov's user avatar
11 votes
Accepted

Unexpected behaviour of ImageSize and ImageDimensions in 12.1

Note that when you apply ImageDimensions, or any other image-processing function to Graphics, the ...
Szabolcs's user avatar
  • 236k
8 votes
Accepted

How to convert arbitrary raw boxes directly into String?

As Kuba notices in the comment, undocumented FrontEnd`ExportPacket allows conversion of a whole Notebook into plain text: ...
Alexey Popkov's user avatar
8 votes

Converting an Unicode's image into polygon data for an SVG

regs = ConnectedMeshComponents@ BoundaryDiscretizeRegion@ImageMesh[ColorNegate@img]; for regs[[1]], we extract the ...
cvgmt's user avatar
  • 76.7k
7 votes

How to obtain a 3D matrix from Graphics3D?

You can apply FillingTransform directly to the Image3D produced using RegionImage to fill ...
George Varnavides's user avatar
6 votes
Accepted

Masking an image with an annulus

Get the image: i = Import["http://exampledata.wolfram.com/coneflower.jpg"]; Define regions for: the whole image, the window disk, the black dot disk: ...
kjosborne's user avatar
  • 1,008
6 votes
Accepted

Blurry labels in GeoGraphics

Use background without labels (with the option GeoBackground -> GeoStyling["StreetMapNoLabels"]) and add the labels as Text ...
kglr's user avatar
  • 398k
6 votes

Prevent rasterization of a simple Plot with a ColorFunction?

It's because (I think) ColorFunction is implemented via VertexColors in the Line object. ...
Michael E2's user avatar
  • 238k
6 votes

How can I create accurate image masks from Graphics?

The first behavior seems to be a bug of v13. In v12.3.1 it works as expected: As to the second example, this seems to be another bug introduced in v12.3.1 or earlier, because v9.0.1 works as expected:...
xzczd's user avatar
  • 67k
5 votes
Accepted

Running out of memory when exporting at high ImageResolution

This has nothing to do with system memory. System textures have limits, both in pixel dimensions and overall video memory used. On Windows, at least, the FrontEnd's threshold is set a little lower ...
ihojnicki's user avatar
  • 3,181
5 votes
Accepted

Control grain size of stipple shading

If we examine the box structure of the output with shift-cmd-e, we can change the value "Tiling" points to. For the input ...
Greg Hurst's user avatar
  • 36.3k
5 votes
Accepted

Custom Graphics primitives can't work with parallel Rasterize

I think this is probably related to Parallel evaluation of Image and Rasterize problem. Briefly, Rasterize is not done by the kernel but by the front-end. For ...
Domen's user avatar
  • 27.3k
4 votes

ImageSize bug in Rasterize

According to the documentation the correct option to set the coarseness of the rasterization is RasterSize, whereas ImageSize ...
Simon Woods's user avatar
  • 85.1k
4 votes

Should I rasterize plots to keep my notebook file small?

Is rasterization going to make the notebooks smaller? It depends on the specific graphics. The documentation tools in Workbench will rasterize only those plots which actually become smaller in ...
Szabolcs's user avatar
  • 236k
4 votes
Accepted

Rasterization problem in version 11.3.0 that was not in 8.0.1

What happens if you go to Edit | Preferences | Appearance | Graphics and crank the slider for "Antialiasing Quality" up to highest quality? Also, you might want to consider trying the ...
halirutan's user avatar
  • 113k
4 votes

How to create a smooth black and white texture without jaggies?

Here's another option using Rasterize. ...
Tim Laska's user avatar
  • 16.4k
4 votes

Converting an Unicode's image into polygon data for an SVG

bdg = BoundaryDiscretizeGraphics[ Text[Style[FromCharacterCode[{29081}], FontSize -> 300]], _Text] ...
kglr's user avatar
  • 398k
3 votes

How to obtain a 3D matrix from Graphics3D?

Another way is use CapsuleShape instead of Tube. ...
cvgmt's user avatar
  • 76.7k
3 votes
Accepted

How to create a smooth black and white texture without jaggies?

Use ColorFunction -> Graylevel in ListDensityPlot to start from a black and white image, avoiding ...
MarcoB's user avatar
  • 67.4k
3 votes
Accepted

Rasterizing an equation makes it low res

When you ask for a big image you also need to specify a high raster resolution. Like so: ...
m_goldberg's user avatar
  • 108k
3 votes

Problem exporting a plot with an inset plot (weird resizing)

Confirmed as a bug by Wolfram Tech Support. The following are workarounds until it is fixed. For Rasterising Rasterize@Framed[plotWithInset, FrameStyle -> None] ...
flyingmind's user avatar
3 votes

How to prerender / rasterize a graphic without losing location information

If you use the same settings for PlotRange and PlotRangePadding when producing the Graphics ...
kglr's user avatar
  • 398k
3 votes

Masking an image with an annulus

We can define a general mask based on Annulus[]. Then Rasterize the Graphics, resize it, ...
José Antonio Díaz Navas's user avatar
3 votes
Accepted

drawing consecutive lines / raster pattern

Suppose your ImageSize is 1000, naturally in order to properly display the image with two pixels for black and white, you would ...
Feyre's user avatar
  • 8,617
3 votes

Exporting MatrixForm Expression as Raster Image With Fixed Size

I'm not sure I get everything correctly, but you can Rasterize the MatrixForm of your matrix and you also can specify the imageSize: ...
David Baghdasaryan's user avatar
3 votes

How to change size of an image in the background of a graph?

...
Szabolcs's user avatar
  • 236k
3 votes
Accepted

For Graphics, ImageDimensions yields slightly different value

For obtaining the true image size in printer's points, one should wrap the expression with Annotation and use ...
Alexey Popkov's user avatar
3 votes

How to render text at a specific height in pixels?

Okay, I'll give it a go, but it just seems unlikely that this is what you want. All I really have to go on is what you said: I would like a way to create an image of text that is a specific height in ...
lericr's user avatar
  • 30.2k
3 votes

Converting an Unicode's image into polygon data for an SVG

On some platforms, exporting to PDF and importing has font issues. Here's a method that exports directly to SVG: ...
Adam's user avatar
  • 3,956
2 votes
Accepted

Rasterize fails when called inside an NMinimize expression

You may use the pattern _?NumericQ to shield your code from symbolic computations. Try ...
Henrik Schumacher's user avatar

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