Rotating JPEGs in .NET with minimal loss of quality

I am attempting to support rotating JPEG images from ASP.NET MVC (in 90 degree increments). I am attempting to use System.Drawing (GDI+), however I am running into issues. I tried using...

App Icon with transparent background doesn't appear transparent on device

I created an app icon on GIMP with transparent background and double checked the transparency by pasting the icon image on colored pages in word editors. I went ahead and used the icon image and...

Application suddenly won't load Bitmap

I'm working on a game for android that is near completion, but within the last week suddenly the loading of Bitmap assets used in the game are throwing memory errors. The main Bitmap in particular...

Change a string in xml into an array in xml easily

I was wondering if anyone knew if there was a simple way to change all of my strings in my xml file to arrays? Example: //This is the string I need to change: <string name="sample1">value1,...

Gimp python plugin

Today I wrote a short python script that should rename a list of layers of a gimp image to add some flags, which are used when the layers are part of an animation. The script is integrated into...

Google Play Store: You need fix your high-res icon. It is not a valid image

This is the error message I get when attempting to give my app an image on the play store. Here is the image. It was created in GIMP. Please help, this is keeping me from getting my app up.

Strange Bitmap using 1 Mb of Heap

Out of curiosity, I just recently tested my Android App for Memory Leaks, using the Eclipse Memory Analyzer. I came across a strange Bitmap with the size of 512 x 512 pixels using up about 1...

Why is the quality of JPEG images produced by PIL so poor?

The JPEG images created with PIL (1.1.7) have very poor quality. Here is an example: Input: https://s23.postimg.cc/8bks3x5p7/cover_1.jpg Output: https://s23.postimg.cc/68ey9zva3/cover_2.jpg The...

git pushes with wrong user from terminal

I have an issue with git and my terminal. Here's a gallery to show you my issue : http://imgur.com/a/6RrEY When I push commits from my terminal, git says I push them with another username, that's...

Working with truncated images with PIL

I am trying to get the Python 2.7 PIL Library to work with JPEG images that are only available as a stream coming from a HDD image and are not complete. I have set the...

How to view an animated GIF / PNG frame by frame, or slow it down

Is there a way to view animated GIFs demonstrations step-by-step? Example of an animated image produced with Blender screencast which is way too fast: Source: What is the fastest way to create a...

PHP - "FPDF error: Not a PNG file", but the image is

I'm currently running into a very odd issue with fpdf. I found a similar question with no answer: https://stackoverflow.com/questions/25980078/not-a-png-file-in-fpdf. I have an image uploaded...

Bash: Fill color on specific part of image

I am looking for a way to batch process images in bash. Is there any way to fill up specific part of image? Example: I want to fill up the red part with white color. The red part is always on the...

Python-fu script not showing in Gimp menu

I’ve been at https://stackoverflow.com/questions/17334993/gimp-python-script-not-showing-in-menu and it didn’t help me. Here’s what I tried, step by step: 1. I’m running Gimp 2.8.16 on Mac...

How does one add an item to GTK's "recently used" file list from Python?

I'm trying to add to the "recently used" files list from Python 3 on Ubuntu. I am able to successfully read the recently used file list like this: from gi.repository import Gtk recent_mgr =...

Gimp Python plugin loading image disables undo history

I have a set of images that I am trying to process manually, so I wrote a simple plug-in to try and help make it a little less painful. The images are numbered sequentially. So when I finish...

Pinnacle Studio - png transparency - exported wtih Gimp

I am trying to import the png image with transparent background to Pinnacle Studio, but unfortunatelly the alpha channel is ignored as background has black color.

How to convert black and white image to array with 3 dimensions in python?

I have image in either RGB format or grayscale format (I converted it through Gimp, let's say), now everytime I load the image in grayscale, or just transform it to grayscale format, the shape...

difference of 2 layers in gimp

Is it possible to recover a black & white overprinted document? A hard to get paper accidentally landed in the printer tray and got overprinted with another document. Is it possible to somehow...

GIMP Script.Fu script to batch convert JPEG to PNG

Can someone give me the script I would need to run to batch convert many *.jpeg files to *.png in Script.Fu in GIMP? Currently I am spending way too much time manually exporting every image and...

On macOS, how can I find the app's path which opens with “open” command?

In macOS, one of the options to open an application via "open" command would be like so: $ open -a "Google Chrome" $ open -a "GIMP" But I realized that the command above works even if the apps...

Efficiently converting color to transparency in python

GIMP has a convenient function that allows you to convert an arbitrary color to an alpha channel. Essentially all pixels become transparent relative to how far away from the chosen color they...

Change JPEG file DPI header in Node.js

I have a file (for example JPEG size 1588 × 2244px). It's generated by puppeteer (but phantomjs also generate 72 DPI screenshot). When I save this image into a file with .jpeg extension and I use...

GIMP get current image reference number to operate on current image

I have more than one image open, and I'd like to run scrip-fu functions on the currently selected image. How can I get the image reference number to the currently selected image so I can use the...

Could not read the contents of Desktop: Operation not permitted ~ GIMP ~ Mac ~ MacBook ~ macOS Catalina

After recent update to macOS Catalina all programs are asking if I'm giving the right permissions for them. Unfortunately, with GIMP it was not the case and whenever I'm trying to open any file...

How to fix blurry VS2019

I ran into an issue where my second monitor with decent resolution, was showing a poorly rendered VS2019. Disclaimer: If somebody would port the features I need in VS2019 to VSCode that'd be...

How to create a custom filter box in a react material-table?

So I have this material-table in a react project I'm working on, the default filtering option just puts a row above your data where you can type whatever you want. What I need is to make a button...

Cannot open .jpg, .png, or .tif files with ImageMagick, only .gif files work

I am using Ubuntu 18.04.1 LTS (Bionic Beaver) on Windows Subsystem for Linux. I installed ImageMagick according to these instructions, the only exception being ImageMagick version is currently...

React Native Inset Shadow Effect

I have a Figma example of a bottom navigation tab bar (image above). It includes two buttons that are displayed with a focused effect. As you can see, when the button is pushed (focused on) it...

How do you normalize an image (histogram stretching) using image-js and JavaScript?

I am using image-js. I have looked at the documentation and I do not see a function called normalize or histogram stretching. However I do see some histogram functions. Can I use the histogram...