Pixel Perfect

Total Page:16

File Type:pdf, Size:1020Kb

Pixel Perfect LINUXUSER ImageMagick PIXELImage processing on the consolePERFECT p.roid, photocase.com p.roid, GIMP isn’t the only option for photo manipulation. ImageMagick, a collection of command-line programs for image processing, can help you process multiple images in one go. BY TIM SCHÜRMANN he holidays are over and your photo, process it, resize it, and then save collection of command-line tools for new digital camera is bursting at it, repeating this process until you have your images. These tools are almost ex- Tthe seams. Before setting up a sorted through all your photos. This clusively accessed from the console and photo gallery on your website, you need method could eat up hours of your busy let you process a bunch of images easily to sort through the photos and put to- weekend. in an assembly-line manner. For exam- gether a few preview shots. Normally, Fortunately, Im- you would fire up GIMP, open a single ageMagick includes a Typical Tasks The ImageMagick program is especially suitable for the following types of tasks: • Converting photos into different image formats • Changing the size of an image • Rotating, scaling, and cutting out sections with pixel precision • Using filters and effects • Creating animations for the web • Creating simple images using basic geometric shapes or by copying and pasting small snippets of graphics • Generating thumbnails and frames • Putting multiple pictures together into a complete work (e.g., as Figure 1: Left-click the photo to open the menu; the small window a poster, collage, or photo gallery) helps you navigate in oversized images. 84 ISSUE 88 MARCH 2008 084-088_imagemagick.indd 84 17.01.2008 14:31:46 Uhr ImageMagick LINUXUSER Figure 3: See more detailed information about your photo, including resolution, color, and file size. tion about a photo Cameras normally generate photos in (Figure 3), includ- JPEG format, which has a serious disad- Figure 2: The “display” command creates an overview of the photos ing some some- vantage: To achieve high compression, that are not yet open. what cryptic infor- JPEG tends to throw image information mation. overboard, which is evident as soon as ple, adding a frame to each of your 451 The example shown in Figure 3 con- you try to apply filters and effects. These vacation photos only requires a short cerns a JPEG file with a resolution of changes can leave unwanted artifacts in command. 3264x2448 pixels, where each color the image. If you still want to post-pro- channel contains 8 bits of color informa- cess your vacation photos, you first need Leftover Goods tion. Using three color channels (for red, to convert them into an uncompressed First, the display program can help you green, and blue) results in a color depth format; for example, photographers like sort through all your images (Figure 1). of 24 bits. The last value gives file size the TIFF format, which is generated by The display *.jpg command, for exam- information. The Exif information hid- the convert image.tiff command. ple, displays all of the JPEG images in den in many photos is dug out by the the current directory. Pressing the space -verbose parameter: Converting Files bar moves you from one image to the If you have a large number of files, the next. An overview (Figure 2) of your $ identify -verbose image.jpg following shell command helps you con- current photos, which also can be saved vert them all in one go: by pressing Ctrl+S, can be generated by After you have determined which pho- the display vid:*.jpg command. tographs you don’t want and deleted $ for i in *.jpg; do convert U The identify image.jpg command pro- them, it’s time to prepare the other pho- $i $(basename $i .jpg).tiff; U vides you with more detailed informa- tos for your website. done Figure 4: The solarization effect generates a negative image. The Figure 5: …but the final results can turn out quite nicely. In this practical benefits of most filters are somewhat limited… example, the swirl effect puts the image through the mixer. MARCH 2008 ISSUE 88 85 084-088_imagemagick.indd 85 17.01.2008 14:32:00 Uhr LINUXUSER ImageMagick For each file ending with .jpg, the shell If an image removes the ending from the file name, doesn’t really con- replaces it with .tiff, and calls convert vey the atmo- with the results. sphere you were hoping for, you File Extensions might want to try Like all of its companions in the Im- converting it into ageMagick package, convert indepen- a black and white dently detects the file format by its ex- photo: tension. Each application automatically knows that a photo named image.jpg is $ convert U a JPEG photo. image.tiff U If the converted file needs an exotic -colorspace U ending for some reason – for example, gray U exot.exo – simply put the format at the black-white.U beginning of the file name: tiff $ convert image.jpg U However, the re- Figure 6: Here you can see Tux floating above the photo as a logo TIFF:exot.exo sults of this type that turned out a little bit too big. of conversion can be quite dull in some cases. -swirl (Figure 5), and -implode implodes What Goes Around the image. The mogrify command along with the Color Channels -rotate parameter rotates sideways im- If this happens, one popular trick is to Watermarks ages into an upright position. Using the use a color channel: Before you load the final results into following command rotates your images: your website, consider investing a bit $ convert image.tiff U more work to prevent any viewers from $ mogrify -rotate "90>" U -channel R U stealing your images simply by applying image.tiff rotated.tiff -separate black-white.tiff a watermark. To apply a watermark, first create a This command rotates image.tiff clock- This command extracts the red channel logo and place it, for example, in the wise 90 degrees. in the image and converts the intensity upper left corner: Note that you do need the quotation values to gray scale in the final image. marks; otherwise, the shell would inter- $ composite -geometry +100+100 U pret the pointy bracket as a redirect and Fun Effects logo.png photo.tiff U would delete the image.tiff. In addition to these basic effects, there photo_logo.tiff also are a few more fun effects. The fol- Filters lowing results in a charcoal drawing: This command copies the image from A number of effects and filters can logo.png to the (100, 100) position on the change or enhance your images after the $ convert image.tiff U image photo.tiff and places the results in fact. In many cases, the sharpen filter is -charcoal 5 U the photo_logo.tiff file (Figure 6). helpful: charcoal-image.tiff A logo inserted in this manner does indeed indicate the origin of the image; convert -sharpen 6 image.tiff U The value behind -charcoal determines however, this doesn’t really look like a scharf.tiff the hardness of the “charcoal pencil.” typical watermark. The -watermark pa- The -solarize parameter (Figure 4) pro- rameter was created specifically to take The number behind the -sharpen param- duces a negative, a swirl is generated by care of this problem: eter indicates the strength of the filter ef- fect. Using convert, you can quickly and Listing 1: Convert gently lighten photos that are too dark: 01 $ convert -font @/home/tim/fonts/font.ttf -pointsize 20 -fill black -draw "text 100, 150 'Vacation in the mountains'" image.tiff $ convert image.tiff -sigmoidalU caption.tiff -contrast 4,0% U lighter-image.tiff Listing 2: Add a Frame TIP 01 convert -font @/home/tim/fonts/font.ttf -pointsize 20 -fill red Instead of the file name, you can also -stroke black -strokewidth 3 -draw "text 100, 150 'Vacation in the use the name of the font – for example, Courier. mountains" image.jpg caption.tiff 86 ISSUE 88 MARCH 2008 084-088_imagemagick.indd 86 17.01.2008 14:32:07 Uhr ImageMagick LINUXUSER $ composite -watermark 30% U -gravity south logo.png U photo.tiff mitU watermark.tiff In this parameter, the percentage indi- cates how visible the watermark should be. The composite command not only integrates logos and watermarks, but it also easily creates collages. For example, you could add an arrow from one photo that has a small ski hut in the back- ground to another photo of the ski hut. Also, adding a caption is a good idea. Captions Captions under the image can indicate the precise location the picture was taken or who the people in the picture are. To add captions, you first need a file with the font you want to use, preferably in a TrueType format (ending .ttf). On KDE and Gnome, perform a search Figure 7: The -polaroid option lets you create images that look like they have been taken with for the fonts using search engines such a Polaroid camera. as Tracker or Beagle. Then it is time to use convert again, which you pass on all the known color names and their such a way that it looks like a photo that behind -font, where the font is located. RGB values. has been glued in and has slight waves Listing 1 shows the somewhat long, in the paper (Figure 7): yet complete, command. Text Frames The @ symbol before the file name This is not an exhaustive list of every- $ convert -bordercolor snow U tells convert that it is dealing with a thing that ImageMagick can do with -background black +polaroid U True-Type font.
Recommended publications
  • Package 'Magick'
    Package ‘magick’ August 18, 2021 Type Package Title Advanced Graphics and Image-Processing in R Version 2.7.3 Description Bindings to 'ImageMagick': the most comprehensive open-source image processing library available. Supports many common formats (png, jpeg, tiff, pdf, etc) and manipulations (rotate, scale, crop, trim, flip, blur, etc). All operations are vectorized via the Magick++ STL meaning they operate either on a single frame or a series of frames for working with layers, collages, or animation. In RStudio images are automatically previewed when printed to the console, resulting in an interactive editing environment. The latest version of the package includes a native graphics device for creating in-memory graphics or drawing onto images using pixel coordinates. License MIT + file LICENSE URL https://docs.ropensci.org/magick/ (website) https://github.com/ropensci/magick (devel) BugReports https://github.com/ropensci/magick/issues SystemRequirements ImageMagick++: ImageMagick-c++-devel (rpm) or libmagick++-dev (deb) VignetteBuilder knitr Imports Rcpp (>= 0.12.12), magrittr, curl LinkingTo Rcpp Suggests av (>= 0.3), spelling, jsonlite, methods, knitr, rmarkdown, rsvg, webp, pdftools, ggplot2, gapminder, IRdisplay, tesseract (>= 2.0), gifski Encoding UTF-8 RoxygenNote 7.1.1 Language en-US NeedsCompilation yes Author Jeroen Ooms [aut, cre] (<https://orcid.org/0000-0002-4035-0289>) Maintainer Jeroen Ooms <[email protected]> 1 2 analysis Repository CRAN Date/Publication 2021-08-18 10:10:02 UTC R topics documented: analysis . .2 animation . .3 as_EBImage . .6 attributes . .7 autoviewer . .7 coder_info . .8 color . .9 composite . 12 defines . 14 device . 15 edges . 17 editing . 18 effects . 22 fx .............................................. 23 geometry . 24 image_ggplot .
    [Show full text]
  • Im Agemagick
    Convert, Edit, and Compose Images Magick ge a m I ImageMagick User's Guide version 5.4.8 John Cristy Bob Friesenhahn Glenn Randers-Pehrson ImageMagick Studio LLC http://www.imagemagick.org Copyright Copyright (C) 2002 ImageMagick Studio, a non-profit organization dedicated to making software imaging solutions freely available. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (“ImageMagick”), to deal in ImageMagick without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of ImageMagick, and to permit persons to whom the ImageMagick is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of ImageMagick. The software is provided “as is”, without warranty of any kind, express or im- plied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall ImageMagick Studio be liable for any claim, damages or other liability, whether in an action of con- tract, tort or otherwise, arising from, out of or in connection with ImageMagick or the use or other dealings in ImageMagick. Except as contained in this notice, the name of the ImageMagick Studio shall not be used in advertising or otherwise to promote the sale, use or other dealings in ImageMagick without prior written authorization from the ImageMagick Studio. v Contents Preface . xiii Part 1: Quick Start Guide ¡ ¡ ¢ £ ¢ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ £ ¡ ¢ £ ¢ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ £ ¢ ¡ ¢ 1 1 Introduction . 3 1.1 What is ImageMagick .
    [Show full text]
  • Multimedia Systems DCAP303
    Multimedia Systems DCAP303 MULTIMEDIA SYSTEMS Copyright © 2013 Rajneesh Agrawal All rights reserved Produced & Printed by EXCEL BOOKS PRIVATE LIMITED A-45, Naraina, Phase-I, New Delhi-110028 for Lovely Professional University Phagwara CONTENTS Unit 1: Multimedia 1 Unit 2: Text 15 Unit 3: Sound 38 Unit 4: Image 60 Unit 5: Video 102 Unit 6: Hardware 130 Unit 7: Multimedia Software Tools 165 Unit 8: Fundamental of Animations 178 Unit 9: Working with Animation 197 Unit 10: 3D Modelling and Animation Tools 213 Unit 11: Compression 233 Unit 12: Image Format 247 Unit 13: Multimedia Tools for WWW 266 Unit 14: Designing for World Wide Web 279 SYLLABUS Multimedia Systems Objectives: To impart the skills needed to develop multimedia applications. Students will learn: z how to combine different media on a web application, z various audio and video formats, z multimedia software tools that helps in developing multimedia application. Sr. No. Topics 1. Multimedia: Meaning and its usage, Stages of a Multimedia Project & Multimedia Skills required in a team 2. Text: Fonts & Faces, Using Text in Multimedia, Font Editing & Design Tools, Hypermedia & Hypertext. 3. Sound: Multimedia System Sounds, Digital Audio, MIDI Audio, Audio File Formats, MIDI vs Digital Audio, Audio CD Playback. Audio Recording. Voice Recognition & Response. 4. Images: Still Images – Bitmaps, Vector Drawing, 3D Drawing & rendering, Natural Light & Colors, Computerized Colors, Color Palletes, Image File Formats, Macintosh & Windows Formats, Cross – Platform format. 5. Animation: Principle of Animations. Animation Techniques, Animation File Formats. 6. Video: How Video Works, Broadcast Video Standards: NTSC, PAL, SECAM, ATSC DTV, Analog Video, Digital Video, Digital Video Standards – ATSC, DVB, ISDB, Video recording & Shooting Videos, Video Editing, Optimizing Video files for CD-ROM, Digital display standards.
    [Show full text]
  • Metadefender Core V4.12.2
    MetaDefender Core v4.12.2 © 2018 OPSWAT, Inc. All rights reserved. OPSWAT®, MetadefenderTM and the OPSWAT logo are trademarks of OPSWAT, Inc. All other trademarks, trade names, service marks, service names, and images mentioned and/or used herein belong to their respective owners. Table of Contents About This Guide 13 Key Features of Metadefender Core 14 1. Quick Start with Metadefender Core 15 1.1. Installation 15 Operating system invariant initial steps 15 Basic setup 16 1.1.1. Configuration wizard 16 1.2. License Activation 21 1.3. Scan Files with Metadefender Core 21 2. Installing or Upgrading Metadefender Core 22 2.1. Recommended System Requirements 22 System Requirements For Server 22 Browser Requirements for the Metadefender Core Management Console 24 2.2. Installing Metadefender 25 Installation 25 Installation notes 25 2.2.1. Installing Metadefender Core using command line 26 2.2.2. Installing Metadefender Core using the Install Wizard 27 2.3. Upgrading MetaDefender Core 27 Upgrading from MetaDefender Core 3.x 27 Upgrading from MetaDefender Core 4.x 28 2.4. Metadefender Core Licensing 28 2.4.1. Activating Metadefender Licenses 28 2.4.2. Checking Your Metadefender Core License 35 2.5. Performance and Load Estimation 36 What to know before reading the results: Some factors that affect performance 36 How test results are calculated 37 Test Reports 37 Performance Report - Multi-Scanning On Linux 37 Performance Report - Multi-Scanning On Windows 41 2.6. Special installation options 46 Use RAMDISK for the tempdirectory 46 3. Configuring Metadefender Core 50 3.1. Management Console 50 3.2.
    [Show full text]
  • Imagemagick V6.8.7-3 - Training Material | WP3
    ImageMagick v6.8.7-3 - Training Material | WP3 Author: Sebastian Kirch (IAIS) Tool Description ImageMagick is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. It is distributed under the Apache 2.0 license. Scanned document images often need to be optimized in order to enhance their contrast or to scale them to a certain size. This step is usually part of the post-processing workflow where images are prepared for visual presentation or they are analyzed using OCR and text processing software. By integrating image manipulation software such as ImageMagick into the post- processing workflow, images can be automatically enhanced using all the operations and features that the software has to offer. They can be resized, optimized or otherwise edited in one single step without any manual intervention. System Requirements Operating System Windows, Linux, Mac OS X, iOS Hardware Dependencies - Software Dependencies - Non-technical Requirements ImageMagick does not have a graphical user interface (GUI) and therefore requires some basic knowledge on how to use and execute the command-line programs. Installation Files Binary releases can be downloaded from the ImageMagick website at http://www.imagemagick.org/script/binary-releases.php.
    [Show full text]
  • PDF File .Pdf
    Creative Software Useful Linux Commands Software Overview Useful Linux Commands Ghostscript (Link) RGB to CMYK Conversion This command will convert PDFs in the RGB color space, such as those created in Inkscape, to CMYK for print. Within the terminal navigate to the file directory and replace out.pdf with the desired output CMYK file name and in.pdf with the existing RGB file: gs -o out.pdf -sDEVICE=pdfwrite -dUseCIEColor -sProcessColorModel=DeviceCMYK - sColorConversionStrategy=CMYK -dEncodeColorImages=false - sColorConversionStrategyForImages=CMYK in.pdf Compress CMYK File This command will reduce the dpi of a PDF to 300 (and possibly other compression). This is useful after converting PDFs to CMYK using the prior command because they can be very large. gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=out.pdf in.pdf Merge and Compress PDF Files This command will merge two PDF files and reduce the dpi to 300. This is useful when generating PDFs in Inkscape. gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=out.pdf in1.pdf in2.pdf Convert PNG's to JPG's in a sub-directory Inkscape only exports files in PNG format. This is a simple command to convert them those PNG files to JPG (with default compression?) using Imagemagick to a subdirectory called Exported_JPGs. Run this command inside of the directory of the PNG files. mogrify -path Exported_JPGs -format jpg *.png Software Overview We use the following software during the course of our work. All of these applications are Free and Open Source Software (FOSS). Operating Systems Solus - A GNU/Linux based operating system with great performance and stability.
    [Show full text]
  • Manual De Usuario V.3.2
    Real-Media Painting Software Manual de Usuario v.3.2 Imagenes cortesía de: Igor Amazonenco | Havey Bunda | Kamila Stankiewicz Introducción ¡Bienvenidos a Rebelle 3! Rebelle es una aplicación de pintura única que le permite crear obras de arte realistas de las medios húmedos y secos, con simulación impresionante y dinámica de flujo de fluidos, de la mezcla de color, difusión húmeda y del secado. Rebelle imita convincentemente la forma en que los medios naturales interactúan con el lienzo y con él mismo. Los usuarios pueden pintar, manchar, mojar los colores secos, soplar pintura húmeda sobre el lienzo, inclinar el papel para crear gotas de agua y crear incontables efectos fantásticos de acuarela. Hemos diseñado Rebelle para los artistas CG así como para los pintores tradicionales que quieren explorar y ampliar su repertorio artístico, utilizando la última tecnología digital innovadora de la pintura. Rebelle 3 une tradición y tecnología con un enfoque original. Los papeles ultra realistas, las imitaciones de papeles reales y lienzos con bordes cortados o barbas ya no son solo cosa del mundo material. A partir de ahora, los artistas pueden utilizarlos digitalmente también. Conservar el blanco del papel o el color de la pintura de fondo en su computadora se puede hacer exactamente de la misma manera que si se aplicara un fluido de enmascaramiento utilizado durante siglos solo por artistas tradicionales. Rebelle 3 integra 'DropEngine' - un nuevo sistema de simulación que permite recrear el comportamiento de las gotas de pintura. Las gotas ahora responden de forma realista a la estructura del papel, de los esténciles y selecciones.
    [Show full text]
  • Java Image Processing Survival Guide
    Java Image Processing Survival Guide Siegfried Goeschl Harald Kuhr “Siegfried, how difficult is it to replace ImageMagick with a Java library?” “Well, not too difficult” The Customer’s Approach • ImageMagick native libraries ‣ Handles image conversion and scaling • Ghostscript for PDF Preview ‣ Invoked by ImageMagick • JMagick to access ImageMagick libraries over Java Native Interface (JNI) The Customer’s Problems • ImageMagick exceptions kills the JVM ‣ Load balancer kills the next server • JMagick is no longer maintained ‣ Unable to set JPEG quality parameter • Installing ImageMagick, JMagick, Ghostscript and friends can be tricky ‣ Failed miserably for Mac OS X Having Said That • ImageMagick & Ghostscript are mature • Handles many image formats and flavours • Being used in production for eight years • Handles 5.000.000 image uploads / month Does not look so easy anymore We Need A Plan • Java ImageIO for low-level image plumbing • Java Advanced Imaging (JAI) for additional image formats • Image scaling library to create previews and thumbnail images efficiently • Apache PDFBox to create PDF previews Java ImageIO • ImageReader to create a BufferedImage from various image formats ‣ JPEG, PNG, GIF & BMP • ImageWriter to write a BufferedImage with various options ‣ Setting image quality for JPEG ‣ Set DPIs for PNG or JPEG Java ImageIO • Apply buffered image operations ‣ Color conversion - grey-scaling ‣ Affine transformation - scaling ‣ Convolution operation - sharpening • Provides a Service Provider Interface (SPI) ‣ Adding additional image
    [Show full text]
  • Imagemagick Studio, a Non-Profit Organization Dedicated to Making Software Imaging Solutions Freely Available
    PDF Info Users Guide , — Page 1 Copyright © 2000 ImageMagick Studio, a non-profit organization dedicated to making software imaging solutions freely available. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen- tation files (“ImageMagick”), to deal in ImageMagick without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of ImageMagick, and to permit persons to whom the ImageMagick is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of ImageMagick. The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall ImageMagick Studio be liable for any claim, damages, or other liability, whether in an action of contract, tort or otherwise, arising from, out of, or in connection with ImageMagick or the use or other dealings in ImageMagick. Except as contained in this notice, the name of the ImageMagick Studio shall not be used in advertising or otherwise to promote the sale, use, or other dealings in ImageMagick without prior written authorization from the ImageMagick Studio. , — Page 2 Chapter 1, Welcome to ImageMagick . 1 Table of Overview . 1 ImageMagick’s Core Features . 2 Contents ImageMagick Studio . 5 It’s Free . 5 Chapter 2, Installing ImageMagick . 6 Getting ImageMagick . 6 External Image Viewer . 6 Mailing List . 6 Memory Requirements . 7 Unix Compilation .
    [Show full text]
  • Charles Troupin Curriculum
    Charles Troupin · Data analyst & modeler · Engineer in Physics +32 498 155 998 charles.troupin1 [email protected] http://ctroupin.github.io https://gitlab.com/ctroupin https://github.com/ctroupin/ http://orcid.org/0000-0002-0265-1021 https://twitter.com/CharlesTroupin Professional experience 2017/01–present . Post-doctoral researcher GHER (ULiège) Data interpolaon, visualisaon and cloud compung 2014/03–2017/01 . Head of the Data Centre Facility SOCIB Acquision, processing and visualisaon of oceanographic and meteorological data 2013/03–2014/03 . Post-doctoral researcher IMEDEA Analysis of in situ, satellite almetry and high-frequency radar data 2010/10–2013/02 . Research assistant ULiège Mulvariate reconstrucon of incomplete satellite images in the North Sea 2006/10–2010/09 . PhD Candidate FRIA-FNRS Study of the Cape Ghir filament using numerical modeling and data interpolaon Publicaon list: https://ctroupin.github.io/CV/publicationList.pdf Education Engineering Finite-element method D.E.A. in Engineer Oceanography PhD in Sciences Fluid mechanics Numerical simulaons in Physics (modelling) (Oceanography) Aerodynamics High-performance compung 2002 2004 2006 2008 2010 2012 Technical skills Programming Languages 2006 2009 2012 2015 2018 Funconal programming Bash awk, makefiles, cron, git, ssh, regex, … Object oriented programming Fortran data I/O, format conversion, opmisaon Test-oriented development Control version system (git, svn) MATLAB geostascs, plong, neural networks Jupyter-notebooks Python matplotlib, numpy, scipy,
    [Show full text]
  • Webp - Faster Web with Smaller Images
    WebP - Faster Web with smaller images Pascal Massimino Google Confidential and Proprietary WebP New image format - Why? ● Average page size: 350KB ● Images: ~65% of Internet traffic Current image formats ● JPEG: 80% of image bytes ● PNG: mainly for alpha, lossless not always wanted ● GIF: used for animations (avatars, smileys) WebP: more efficient unified solution + extra goodies Targets Web images, not at replacing photo formats. Google Confidential and Proprietary WebP ● Unified format ○ Supports both lossy and lossless compression, with transparency ○ all-in-one replacement for JPEG, PNG and GIF ● Target: ~30% smaller images ● low-overhead container (RIFF + chunks) Google Confidential and Proprietary WebP-lossy with alpha Appealing replacement for unneeded lossless use of PNG: sprites for games, logos, page decorations ● YUV: VP8 intra-frame ● Alpha channel: WebP lossless format ● Optional pre-filtering (~10% extra compression) ● Optional quantization --> near-lossless alpha ● Compression gain: 3x compared to lossless Google Confidential and Proprietary WebP - Lossless Techniques ■ More advanced spatial predictors ■ Local palette look up ■ Cross-color de-correlation ■ Separate entropy models for R, G, B, A channels ■ Image data and metadata both are Huffman-coded Still is a very simple format, fast to decode. Google Confidential and Proprietary WebP vs PNG source: published study on developers.google.com/speed/webp Average: 25% smaller size (corpus: 1000 PNG images crawled from the web, optimized with pngcrush) Google Confidential and Proprietary Speed number (takeaway) Encoding ● Lossy (VP8): 5x slower than JPEG ● Lossless: from 2x faster to 10x slower than libpng Decoding ● Lossy (VP8): 2x-3x slower than JPEG ● Lossless: ~1.5x faster than libpng Decoder's goodies: ● Incremental ● Per-row output (very low memory footprint) ● on-the-fly rescaling and cropping (e.g.
    [Show full text]
  • Pcmark 10 Technical Guide
    Technical Guide Updated February 11, 2021 Page 1 of 141 PCMark 10 – An Industry Standard Benchmark for the Modern Office ................... 4 What's new in this version? ............................................................................................. 5 How does PCMark 10 compare with PCMark 8? .......................................................... 6 PCMark 10 Editions ......................................................................................................... 11 Better benchmarking guide ......................................................................................... 12 Using PCMark 10 to specify PC performance ............................................................. 12 How to test performance .............................................................................................. 15 How to test battery life .................................................................................................. 16 How to test Storage performance ................................................................................ 20 Benchmark accuracy ...................................................................................................... 21 Latest version numbers ................................................................................................. 22 Minimum system requirements ................................................................................... 24 How to use PCMark 10 ................................................................................................
    [Show full text]