png

How to convert 32 bit PNG to RGB565?

旧街凉风 提交于 2019-12-12 09:11:54
问题 How can I accomplish this? A programmatic solution (Objective-c) is great, but even a non-progarmmatic one is good. I have pixelmator -> But that doesn't give you the option. I can't seem to do it with Preview either. I have tried googling, but haven't been able to find a solution so far. The only tool I have been able to use to do this is TexturePacker, but that creates a sprite sheet. 回答1: You can use libpng to convert the PNG image to three-byte (8:8:8) RGB. Then you can downsample to the

matplotlib plot and then wait for raw input

旧城冷巷雨未停 提交于 2019-12-12 08:49:03
问题 I am trying to open a series of .png plots. I want to be able to view a plot on the screen and then get a prompt waiting for me to 'press enter'. On hitting enter, the next plot should be shown. I have seen many questions similar to this (Matplotlib - Force plot display and then return to main code) but when I do this I then have to manually click X on the top right-hand-side of the plot window to close it and only then does the code continue. I am using python 2.7.8 Here is my code: from PIL

Background repeat doesn't seem to work in IE6

安稳与你 提交于 2019-12-12 06:16:03
问题 I ve applied a background to my page like this, body { background:#FFFFFF url('images/color.png') repeat top left; color:#666666; font-family:Arial,Helvetica,sans-serif; font-size:80%; font-style:normal; font-variant:normal; font-weight:normal; white-space:nowrap; margin:0 auto; height:100%; } This seems to work in IE7,firefox and chrome but certainly not in IE6. 回答1: IE6 hates pngs..:) leave alone rendering them in background..! you will need some sort of PNGFix for this.. I usually use this

Read keywords in xmp from png with Java

不羁的心 提交于 2019-12-12 05:27:56
问题 I am trying to get keywords added to a PNG image file in Photoshop using Java. I tried this method using the imageio in Java: http://johnbokma.com/java/obtaining-image-metadata.html However, all I get is the following: Format name: javax_imageio_png_1.0 <javax_imageio_png_1.0> <IHDR width="128" height="128" bitDepth="8" colorType="RGBAlpha" compressionMethod="deflate" filterMethod="adaptive" interlaceMethod="none"/> <cHRM whitePointX="31269" whitePointY="32899" redX="63999" redY="33001"

Fade transparent .png's on top of each other on clicking link

◇◆丶佛笑我妖孽 提交于 2019-12-12 05:27:19
问题 I am creating a 650 X 610 px historical railway map and would like to start with a blank map, then fade in transparent .png layers containing just a fragment of the railway, one on top of the other, building up to an image of the whole network. There would be a list of the dates the network was extended to click and make that bit of line appear. Easily done using solid images, but very slow and there are 31 images. I couldn't find any forum queries about this anywhere. Please could anyone

Error with loading png in Rmd file

╄→尐↘猪︶ㄣ 提交于 2019-12-12 05:25:16
问题 i am trying (invane) to load a png file in my Rmd file. I save both the Rmd and the png in the same folder on my main drive (I tested i can read/write files in there with R). When i run the following code --- title: "Determinants of profitability" author: "Daniele Frison" date: "26 November 2015" output: html_document: fig_height: 10 fig_width: 10 --- ```{r} ![aaa](prof_vs_costs.png) ``` I get inexorably this error message: |................................ | 50% ordinary text without R code

Bad data coming from cudaMemcpy2D

ぃ、小莉子 提交于 2019-12-12 04:57:49
问题 If this sort of question has been asked I apologize, link me to the thread please! Anyhow I am new to CUDA (I'm coming from OpenCL) and wanted to try generating an image with it. The relevant CUDA code is: __global__ void mandlebrot(uint8_t *pixels, size_t pitch, unsigned long width, unsigned long height) { unsigned block_size = blockDim.x; uint2 location = {blockIdx.x*block_size, blockIdx.y*block_size}; ulong2 pixel_location = {threadIdx.x, threadIdx.y}; ulong2 real_location = {location.x +

extracting png files from APNG in java

心已入冬 提交于 2019-12-12 04:34:29
问题 I have been trying to extract all the png files from an APNG file. i have looked for help and well there isnt much. All i could find is a open source library pngj and with it i am able to get the first frame of a APNG file. Here is the code i am using public static void mirror(File orig, File dest, boolean overwrite) { PngReader pngr = FileHelper.createPngReader(orig); PngWriter pngw = FileHelper.createPngWriter(dest, pngr.imgInfo, overwrite); pngw.setFilterType(FilterType.FILTER_CYCLIC); //

Noise in PNG produced by pngjs for nodejs

假装没事ソ 提交于 2019-12-12 04:05:06
问题 I want to slice PNG spritesheet to sprites using pngjs v3.3.0 for nodejs. This gives me unxpected noisy background for some of produced sprites. Then I tryed simple script that just creates empty transparent PNG and then writes it to a file: var fs = require('fs'); var PNG = require('pngjs').PNG; var dstBuffer = new PNG({ width:50, height:50 }); dstBuffer.pack().pipe(fs.createWriteStream("empty.png")); And empty PNG is created with noisy background as well. I also tried to not to use

HTML email signature returning .png file on Outlook reply

 ̄綄美尐妖づ 提交于 2019-12-12 03:59:01
问题 I'm creating some email signatures for my company and I've come across a little problem. I've got it working with Outlook fine (when I send to a user with Outlook the signature looks perfect), however when they reply the signature text is turned into a .png file, while the background image is shown still. I'm not sure why Outlook is turning it into a .png? Has anyone experienced this ? IMAGES. This is how the signature should look, and does look in Outlook & Mac mail. This is what happens