png

Detecting corrupted images in bash script [closed]

本小妞迷上赌 提交于 2019-12-20 09:00:12
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I have >2000 images from a webcam stream (for a time-lapse video), I need to delete all incomplete & corrupted images, before passing them to a php-gd script that edits them for the final video. Is it possible to detect corrupted files with imagemagick or some other tool? If i try

Convert Android vector drawable to launcher icon PNG

我只是一个虾纸丫 提交于 2019-12-20 07:14:27
问题 I've made Android launcher icon as vector but I found out that I should use PNGs instead of vector(XML). How can I convert my vector image to PNGs for launcher icon. This is vector if it's of any help: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:width="100dp" android:height="100dp"> <item> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="#5FB0C9"/> <size

PHP add iTXt comment to a PNG image

爷,独闯天下 提交于 2019-12-20 07:08:25
问题 I have looked around for this everywhere. I know it can be done using some libraries in .net, but I really want my script to generate a "marked" image. The reason is that we are a forum host, and have teamed up with a theme making company. The theme making company wants us to be able to track down any illegally distributed themes. I saw the iTXt comment in the GCHQ CanYouCrackIt exercise and think it'll be the best, no intrusive method of protecting our property. 回答1: A suggestion: If you

Combining images in PHP while retaining transparency

♀尐吖头ヾ 提交于 2019-12-20 05:45:48
问题 Have a look here: http://tyilo.jbusers.com/PNG/progress.php?l=100&p=20 I want to remove the white-thingy at the end of the blue part, but I have tried many different things that didn't work. If needed the pngs can be found in http://tyilo.jbusers.com/PNG/ folder (http://tyilo.jbusers.com/PNG/Empty.png) header('Content-type: image/png'); echo imagepng(progressbar($_GET['l'], $_GET['p'])); function progressbar($length, $percentage) { $length = round($length / 2) * 2; $percentage = min(100, max

Graphics folder modules will not import after several installs (Mac OSX)

半腔热情 提交于 2019-12-20 04:43:11
问题 A similar problem with the python gdal module Gdal will not import after several installs (Mac OSX) was solved by modifying my shell profile to ensure MacPorts-installed ports are found, and then using sudo port select python python27 . But this time it's every module in my graphics folder that deals with tiff and png reading and writing that will not import: tiff @3.9.5 graphics/tiff pngpp @0.2.3 graphics/pngpp libgeotiff @1.3.0 graphics/libgeotiff Again, when I run python to import either

Should we bother about IE < 8?

大憨熊 提交于 2019-12-20 04:38:06
问题 It might look like philosophical question, however it really bother me. We're expecting HTML 5, we're using JS, Ajax, Flex, all this stuff, but when older browsers were developed, no one even dreamed about such technologies. IE6 can't see transparency in PNG's. Some correct W3C techniques, are bad interpretations by IE6. It's just too old for our "new" world. IE7 is sight better better than IE6, but it still has some weird errors. How many people use IE6 now? And if someone upgraded it to IE7

PHP GD issues with ImageCreateTrueColor and PNGs

对着背影说爱祢 提交于 2019-12-20 04:30:50
问题 I am resizing PNG images using the GD image library function ImageCopyResampled(). It all works fine, I can even keep alpha blending transparency with the use of ImageCreateTrueColor() rather than using ImageCreate() to create the resized image. The problem is, that if I use ImageCreateTrueColor() rather than ImageCreate() the file size of PNG files increases from something like 80kb to 150kb. If I use ImageCreate() the file size stays around the same size, but colors screw! So my question is

Is there some way to predict png size?

China☆狼群 提交于 2019-12-20 04:23:10
问题 I am implementing clipboard, and I want to allocate memory for png image one time. Is there some way to predict maximum size of png file? 回答1: A PNG image includes several things: Signature and basic metadata (image size and type) Palette (only if the image is indexed) Raw pixel data Optional metadata (ancillary chunks) End of image chunk Size of item 1 is fixed: 8 + 12 + 11 = 31 bytes Size of item 2 (if required) is at most 12 + 3 * 256 = 780 bytes Size of item 5 is fixed: 12 bytes Item 3,

MFC CImage alpha blending gone wrong

喜欢而已 提交于 2019-12-20 04:21:06
问题 I have to present images on a picture control that are a composition of two PNG files, where the top image has transparent pixels on certain positions. The result should of plotter.png with bar.png overlapped on its top appears as (Notice the strange white contours on the bar): but it should be: The code I made for it is simple as CImage image; if (FAILED(image.Load(L"plotter.png"))) return false; CImage imageBar; if (FAILED(imageBar.Load(L"bar.png"))) return false; imageBar.AlphaBlend(image

Best format for lossless image compression in C#

偶尔善良 提交于 2019-12-20 03:14:45
问题 I need to save video frames individually and compress them losslessly. I'm looking for the best method and format in c# - by best I mean the best balance of simplicity of implementation, good compression and reasonable processing requirements. I know PNG is lossless, but its compression isn't great for photo style images. I understand that there is a lossless Jpeg format, but is this implemented in C#? Are there other options I am unaware of? 回答1: Here are some compression ratio's for