This article describes different methods of changing a QR code in Photoshop that allow to insert a logo, image or text. The custom or branded QR code will be read correctly despite the modification. The QR (Quick Response code, Denso Barcode, ISO/IEC18004) code represents a two-dimensional code bar, initially used by industry, but widely used today to encode and transmit short information, like URLs, phone numbers, contact information, business cards, meetings, GPS locations, email. The transmission is done visually and the receiver is a mobile device that has a camera and a code reader software. QR codes were created in 1994 by a subsidiary of Toyota, Denso Wave , to be used by the carmaker in the management of various auto parts. QR Codes were use din the production for fast visual identification of components and for storing additional information.
Today, QR codes have become an effective tool used in transmitting information to mobile users, because its characteristics:
made it an effective tool used in transmitting information to mobile users.
How do I choose the type of QR code ?There are several types of QR codes classified by their number of rows and columns (it is a square matrix and its lines number is equal to columns number) called modules . There are 40 versions that contain from 21 to 177 modules. Each version has with 4 more modules than the previous. QR codes with a higher version have a larger storage capacity but also a higher density of points in the image, thus making them harder to be read by common devices.
* data for all QR versions is available on Denso Wave site. QR codes contain information used to validate and correct stored data. This allows the QR code reader to extract all the data even if it hasn’t read all the code (it’s not visible or it has been modified). The solution is defined by the Reed Solomon error correction method which is used in the generation of the QR code. The method allows a reader to retrieve QR code data even if it has errors (between 7% and 30%)
Because the data used to validate and correct is also present in the QR code, a higher level of protection means less space for user data. So, when choosing the QR code version take into account:
For marketing campaigns, advertising and business cards, the version 6 is more than enough. Also for the examples in this article I have used a QR code version 6. How to generate QR codesTo generate QR codes can be used a number of generators that are available without cost on the Internet (a Google search provides other solutions):
Once generated, the QR code can be downloaded as a image in different formats (JPG, PNG, BMP, GIF). For the examples in this article you can use any generator that allows to select the QR code version, and its error correction level. What if the URL is too longIf a QR code is used to send an URL, it can happen that, for the chosen version of QR code and error correction level the number of characters in the address is bigger than the maximum number of alphanumeric characters allowed. Also, many characters in the URL generates a higher density of points in the QR code and it seems too noisy. In this situation DO NOT change the website structure to shorten the URL and DO NOT buy another shorter domain. The solution to this problem is to use one of the many Internet services that provides short aliases for that URL. Services are provided without cost and an example is . For example, for the URL http://www./2011/08/08/tutorial-android-setting-the-development-environment/ the service generates an alias like: http:///9nRCj5 . These services automatically redirect visitors to the original URL and also can provide various statistics. If you don’t want to depend on a third party service you can implement your own redirection service.
How do I read and test the generated QR codeYou can use the QR code reader available on your smartphone or tablet. For Nokia devices that don’t have a QR code reader software, it can be downloaded from the Nokia Scan and decode mobile codes page. A client for the Android platform is provided by the zxing project and in the future it is expected to include it as a native application that will be automatically activated when the camera in on. Another solution is to use a free Internet QR reader provided by different websites. The QR code is uploaded as an image and test it. How to insert a logo or image into a QR codeAlthough QR codes represent a non-attractive simple black and white image, it can be modified to look like this: or like this One of the first articles on this subject was written by Duncan Robertson of the BBC in which he describes how to generate the next QR code: Why QR codes can be modified and still workModifying a QR code and make it more attractive and interesting is possible because when it is generated it is used the Reed Solomon error correction method. The four levels of error correction (L, M, Q, H), described earlier, allow the correct reading of the code even if 7%, 15%, 25% or 30% of the code image is missing or contains incorrect information. Based on this characteristic of the QR code, we can change up to 30% of its content to insert a logo, image or other information. However there are areas of the QR code that can NOT be changed because it will affect the QR code structure of the QR code (version, format, positioning and alignment markers). QR code safe area, where you can insert a logo or image without destroying, it is the data area (the gray area in the next image).
10 steps needed to insert a logo, image or text in a QR codeImportant !
Step 1. Generate a version 6 QR code with a H error correction level (maximum 30% errors) for a chosen URL. You can use a generator suggested in section How to generate QR codes or found on the Internet. The generator (I have used GoQR generator) should allow you to edit next parameters:
Download the generated code (preferably in PNG format). Step 2. Open Photoshop (in this example I used CS3 but any newer version is ok) and create a new document with these settings: Photoshop document settings for the QR project
Step 3. Add the QR code image using File -> Place from Photoshop menu. The image is placed on a new layer and is a Smart Object. To identify this layer easily let’s name it QR (Double-click the layer name to start edit it). If the image of the QR code doesn’t have the desired size (250px X 250px in this example) then resize it. Select the QR layer and choose Edit -> Transform –> Scale or Edit -> Free Transform (Ctrl + T) . Step 4. To edit the QR code image, the Smart Object from the QR layer (if this is the image format after being added in Photoshop) is rasterized using Layer -> Rasterize -> Layer or Right-click on layer and chose Layer Rasterize; Step 5. Remove the white background from the QR image (not the Background layer). We will do a selection of all the white pixels: 5.1. Select the QR layer; 5.2. Select all white pixels using Select -> Color Range. In the Color Range window use the color picker to select white pixels. Also set Fuzziness to zero: Select QR code white background in Photoshop 5.3. Remove selection content with Delete and after that cancel the selection using Ctrl + D or Select -> Deselect. After that the QR layer contains only the code image. At this point, the Photoshop project contains two layers: a white background and the QR code. Photoshop custom QR project layers How to generate a QR code with round corners
Step 6. (optional) Apply a corner rounding effect on the QR code.
6.1. Select the QR layer content holding down Ctrl and Left-Click on the layer icon.
6.2. Open the Refine Edge window using Select -> Refine Edge and make the following adjustments: Refine edge settings for rounded QR code 6.3. Having the QR layer selected, copy the adjusted selection (Edit-> Copy) in a new layer (Edit -> Paste and it automatically generates a new layer). Name the new layer QR Rounded and if you hide the initial QR layer then the image looks like this: Modified QR code with round corners Step 7. Apply a Gradient Overlay…, Pattern Overlay… or Color Overlay… on the Rounded QR layer or on QR (if you skip step 6).
Gradient Overlay settings for custom QR code After step 7, the QR code becomes: QR code with a gradient What is the area that you can changeBecause we use a QR code generated with a H error correction level (up to 30% errors) means that we can change some of the data and correction area (the gray area).
Step 8. (optional) In order not to waste time with changes that destroy the QR code you can define a safe work area to be used as reference. For the QR code generated with a size of 250 x 250 the safe area (for this example) can be a 100px X 100px square, a 200px X 50px rectangle or a 100px radius circle.
How to add an image or text
Step 9. Define a new layer and insert an image (any type of image) or text. You can take into account the safe area, or NOT.
Step 10. To highlight the text or logo, apply a 4-5 pixels white (the color from the background) Stroke effect on the layer.
The final result can be:
Customized QR code Inside the QR code you can change colors, as long as you preserve the contrast between the barcode and background. It it helps you can check the Photoshop project source. Like it or found it useful? Then share this post or check the external adds. Sharing is the best way to appreciate the author. |
|