Motiff supports exporting layers and slices as images for the development of new features or for migrating content between tools.
Motiff currently supports exporting layers in PNG, JPG, SVG, and PDF formats, with the ability to change the sizes and name suffixes of the exported items.
The display location of the export option is related to the user's access permissions:
You can export by following these steps:
Tip: Clicking Preview below the Export section allows you to preview the export effect. If multiple layers are selected, the preview will not be displayed. After exporting, the image will be saved in the default download location of the browser. If you need to adjust related settings, you can modify them in the browser's preference settings.
Tip: Under Can edit, you can use to set the export range.
You can set the size of the exported image using the dropdown selector or input box.
x
represents the multiplier (e.g. 1x, 2x, 3x…), indicating that the export size is the current layer width and height multiplied by the corresponding multiplier.w
represents exporting at a specified width, and h
represents exporting at a specified height (e.g. 100w means exporting an image with a width of 100px).
The exported image files will be named after the layer name. You can add specific suffixes to distinguish different export files of the same layer.
You can set the file type for each export configuration. Motiff supports PNG, JPG, SVG, and PDF file types.
PNG (Portable Network Graphics) is a raster image format supporting lossless compression algorithms. It supports indexed color, grayscale, RGB color schemes, and other features such as the Alpha channel.
PNG supports high resolution, lossless compression, different levels of transparency, and a higher color depth. It is suitable for images with transparency (e.g. logos, icons) and photos and charts with extensive details and continuous color tones.
PNG files are larger and take up more space. Using PNG on web pages will result in longer page load times and slower response speeds.
Notes: The PNG supported for export in Motiff is 32-bit PNG, which is composed of 4 8-bit channels: R (Red), G (Green), B (Blue), and Alpha channel.
JPEG (Joint Photographic Experts Group) is an international organization established in the late 1980s and early 1990s to develop and standardize image compression formats. It is a standard for continuous-tone still image compression and a raster image format using a lossy compression algorithm.
JPEG files support a 24-bit color depth and have 16.7 million colors, but they do not support different levels of transparency.
JPEG can achieve a high compression ratio while retaining image quality, thereby reducing the image storage space and transmission time. Additionally, it is a popular format supported by almost all image-processing software, browsers, and operating systems.
Therefore, JPEG is suitable for photos or other images with rich colors and details. However, for images that need to retain all details or have transparent effects, other image formats (such as PNG or SVG) should be used.
SVG (Scalable Vector Graphics) is an XML-based vector image format for defining two-dimensional graphics.
Unlike raster graphics (e.g. PNG, JPEG), vector graphics use mathematical formulas to describe the shapes, colors, and positions of graphics. This allows SVG to scale without distortion.
SVG supports transparency. Although SVG is a vector graphic format, it supports embedding raster graphics (bitmaps) and text in various formats within SVG.
For images composed of simple geometric shapes and colors, the sizes of SVG files are usually smaller than raster image files (e.g. PNG, JPEG).
For images with a lot of detail and extensive colors (such as photos), SVG may not be the best choice, as these details need to be described with a larger number of mathematical formulas and path information, which can lead to large file sizes. In such cases, lossy compressed raster image formats are more suitable (e.g. JPEG), since they can use lossy compression algorithms to reduce file size while retaining acceptable visual quality.
PDF (Portable Document Format) is a cross-operating system file format. PDF files support vector graphics, raster graphics, and text. Each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, vector graphics, raster graphics, and other information required to display it. Therefore, PDF files are compatible and can be viewed on various operating systems and devices.
Xcode, a suite of tools developers use, supports using PDF format files as images. PDF can achieve lossless scaling, making it a convenient and practical choice to build apps for Apple platforms.