Project Summary of Hyperlink QR Code Management System

Project introduction: Hyperlink QR code management system
Technology platform: thinkphp + js + mysql
Technical points:
1. QR code generation and maintenance
Use the open source library of phpqrcode to generate QR code
The QR code output format can be customized jpg or png, dpi, dimensions, RGB or CMYK, foreground and background colors.
If you output png, you cannot set RGB or CMYK mode, only the default grayscale or indexed color. (imagemagick cannot implement this function)
Change the picture using php to call the imagemagick command line to execute.

For the generated QR code image, if the color is black and white, the default is grayscale. If it is a color image, PNG generates an indexed color by default, and JPG is an RGB color.

2. Hyperlinks can be uploaded and downloaded through excel. If you download multiple qrcodes, package them into zip files and then download them. After downloading, delete the generated directories and zip files.

3. Record address access records and analysis. Including access IP, from city, event, times, daily times, etc.

4. Realize short link domain name to automatically jump to longlink. Configure application rules in .htaccess. as follows:
<IfModule mod_rewrite.c>
   RewriteEngine On
   #RewriteCond %{HTTP_HOST} ^xxx.com/([a-z0-9]{6})$
   RewriteRule ^([a-z0-9]{6})$ /Admin/Redirect/?shorten=$1  [R=301,L]
   RewriteRule ^expire /Admin/Expire [R=301,L]
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>


5. The generation rules of shortlink, 6 lowercase letters or numbers. Must include both letters and numbers. It turned out to be generated with js. Later, considering that there may be repeated situations, it is very troublesome to regenerate, so I re-implemented it with php. Duplicate cases are handled in the backend.

6. Export project information and link information to excel.

7. The color picker uses jpicker-1.1.6.js. Transparency can be set. This plugin is not very good, but I haven't found a better one.

8. Authority control Persons with authority in the
same department can view all records created by this department. but cannot be modified. Only the creator can modify it.

9. Convert the generated rgb image to CMYK mode, and the image will become blurred.
Use imagemagick to convert to CMYK mode, the image becomes blurred after conversion. Try to use adobe icc profile, add -profile parameter conversion, but still can't solve it.
Later saw that the latest version 6.8.5 of imagemagick solved the problem.
In addition, I found a solution, convert the jpg rgb image to the CMYK mode image in the tiff suffix format, and then convert it into the jpg format to get a clear image.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327069819&siteId=291194637