png

PHP imagepng() is creating corrupt image

做~自己de王妃 提交于 2019-12-23 19:26:19
问题 I have searched everywhere to find a possible solution to my problem. Unfortunately I cannot seem to figure it out. I have a .php file that creates an image based on other images. I had the script working exactly as it is right now before without flaws. But after fiddling around with some other files it suddenly stopped working and is generating corrupt .png images now on Firefox, Chrome and IE. image.php <?php ini_set("display_errors", 1); ini_set("error_reporting", 2047); ini_set("display

transparent background issue IE8, IE7

淺唱寂寞╮ 提交于 2019-12-23 19:22:56
问题 use an icon (.png transparent background) for my menu. There isn't any problem for IE9, Chrome,Firefox,safari,opera.But if I open page with IE7 or IE8 there is a broken black border around image. CSS codes; .menu-item1{ background:url(img/spriteimage.png) no-repeat 0 0; height:20px; width:20px; opacity:0.5; } How can I fix this? 回答1: IE7 and IE8 have native PNG support for alpha-transparencies, but it falls to pieces as soon as opacity comes into the picture Try faking a background image or

Why do links on my transparent div become unclickable in IE?

梦想与她 提交于 2019-12-23 19:16:36
问题 Links on my website: http://rnmtest.co.uk/oddfellows/ If you hit 'Dine' you should see a 'Book Now' button. This element is not clickable in IE. The area below it has a semi-transparent png as the background. The content is loaded via jQuery. I have put the anchor within a container div as recommended by other websites, but this has had no effect. If I resize the window in IE8 I can sometime click a small portion of the button. This effect occurs on all anchors, not just the images. 回答1: This

creating .bmp image file from Bitmap class

白昼怎懂夜的黑 提交于 2019-12-23 18:53:43
问题 I've created an application that uses sockets in which the client receives the image and stores the data of the image in Bitmap class.... Can anyone please tell me how to create a file named myimage.png or myimage.bmp from this Bitmap object String base64Code = dataInputStream.readUTF(); byte[] decodedString = null; decodedString = Base64.decode(base64Code); Bitmap bitmap = BitmapFactory.decodeByteArray(decodedString, 0,decodedString.length); 回答1: Try following code to save image as PNG

python pygame的png显示

此生再无相见时 提交于 2019-12-23 18:39:40
-pygame.image.load()对象和blit()绘制 plane=pygame.image.load('plane.png') WindowSurface.blit(plane,(50,50)) #在(50,50)的位置打印出了plane.png这张图片 注意:请检查图片是否和代码放在同一文件夹内,否则代码应改为: plane=pygame.image.load(r'C:\Users\Username\Desktop\plane.png') 如果没有放在同一文件夹,应该写出完整路径,并在前面加上r 来源: CSDN 作者: Avelynn 链接: https://blog.csdn.net/qq_40413731/article/details/103663132

Specify background colour when generating movie from images

回眸只為那壹抹淺笑 提交于 2019-12-23 18:25:29
问题 I generate a video from png images using ffmpeg -i visualization/%d.png -c:v libx264 -vf "scale=500:trunc(ow/a/2)*2" -pix_fmt yuv420p z.mov and if images have transparencies, they become black. Can I somehow make them white? 回答1: Before running ffmpeg, use ImageMagick to "flatten" each PNG against white. mogrify -background white -flatten visualization/*.png 来源: https://stackoverflow.com/questions/21723343/specify-background-colour-when-generating-movie-from-images

Ghostscript error with print function in Matlab

雨燕双飞 提交于 2019-12-23 18:00:04
问题 I am trying to save images in Matlab by using the print function: myImage = magic(500); myFigure = figure('visible','off'); r = 1; set(myFigure, 'PaperUnits', 'inches', 'PaperPosition', [0 0 1920 1080]/r); % the program works fine on both computers without the line above % however, the program runs fine on one computer only with this line imagesc(myImage); axis image; print(myFigure, '-dpng', sprintf('-r%d',r), 'myOutput.png'); When I run this program locally with Matlab R2012b, it works as

firefoxs renders thin grey lines at content box edges of a png at certain widths - why?

余生长醉 提交于 2019-12-23 17:29:05
问题 When firefox (3.0.6) renders a png image at certain widths (e.g., 50%), a thin grey line is shown along the left and top edges of the content box. The line disappears at other widths (e.g., 70%). Furthermore, the line doesn't seem to be present in the original image (using gimp to inspect the image). The phenomenon occurs in the absence of the CSS style markup -- in the HTML example below, the CSS is present to clarify where the grey lines are located -- it seems clear that the grey lines are

Bad PNG rendering (low color depth) in Java Swing

心不动则不痛 提交于 2019-12-23 17:16:27
问题 I'm currently designing Pac Man in java using swing. I have PNG images that are drawn on screen using the following statement. wall = new ImageIcon(GamePanel.class.getResource("wall.png")).getImage(); g2d.drawImage(wall, x, y, this); The problem I'm having is that it seems to render a very low colour depth rendition of the actual file. It seems like it does retain transparency (grey background is the Panel bg color), but it loses color depth. The actual image looks like this: When running, it

Replacing image extensions in jQuery, go from .png to .gif on the fly

一世执手 提交于 2019-12-23 15:53:45
问题 So, I'm using CSS3 in order to create sidebar boxes in my site design, this works nice and dandy. Using http://css3pie.com in order to create the effect in IE. Again, nice and dandy. Now, comes my issue - For each relatively positioned module, there is an absolutely positioned icon within it, that is set to being top: -20px in order to give it a pop-out effect. Obviously this doesn't work in IE6, as well it doesn't play nice with any PNG fix codes. However, for IE6 users I can switch to a low