SFML: unable to open .png file - png

It may sound like other questions related to this matter but I don't have any problems opening rectangular .png files. Seems like my computer has problems only with non-rectangular pictures (e.g. triangular play button without the background). What can be done? I think there's no need to provide a reproducible example. Appreciate all the help.
EDIT: the error is as follows

I think you forgot to put your picture in your project folder because I once made that mistake for a game that I made. You should also maybe remove Resources/res/ from the loadFromFile code.

I'm using rectangle and circle shapes with textures loaded form file without problem, transparent .png's too. If you are absolutelly sure that your code is correct, you got correct file address etc.. Maybe there is a problem with image. Try to load some another image where you 100% know that it works fine. Maybe your antivirus is messing with your projects,. Check if you have exception for your project directories. I could be more specific if you provide some code of your attempt to us.

Related

Converting spritemap & animation instructions into video

i've got an image with detached body parts, 1 file showing where each one is and another showing where they go and how they move. it looks like it was made in spine.
those files are from a unity game
i've found a tool (https://lib.haxe.org/p/OpenFl-Animate-Atlas-Player/1.9.3) that i thought would do exactly that but it seems to not work, or i don't know the correct terminology with which to search for
so if anybody knows a tool that can convert those files into a gif/video it'll help a lot
if i left something out here are the files themselves: https://mega.nz/folder/ko01xQjI#pfiVzEf9Oy1q1hINwSwUhA

Distortion in fonts after converted Ai file into png

guys.
I need some help with some Ai thingy. Recently I try converted Ai file into png and it works fine but later I found out that some of the fonts have changed and so the proportions become off. I tried to review back to my Ai design and everything was fine there, proportioned wise etc. I tried using other converter and none of it works. if it works, the same problem occurs. I need to know if anyone can help me with it.
In Illustrator, use "Export..." from File menu and select PNG as the file type. In the export settings, choose the highest DPI setting and consider the other options in that dialog if you are not happy with the result.
This will render out a PNG with the same fonts and should look like what the file looks like on your computer.

What happens if you modify a image when it's open?

I was doing a geometry dash private server with a friend then I noticed that we can modify images in ftp while someone is running the game so I want to ask what will happen if we rename the image when someone is playing?
It depends on what image you're talking about. Gamesheets get loaded on starting the game so renaming them will do nothing while running the game but detail images like the vault faces will only be loaded when needed. Since the names of these images are hardcoded you need to change those before renaming them, otherwise it will just crash due to missing files.

old images show after replacing with new ones in ios app

I am dealing with this really really annoying bug in X-Code where it seems to save images to some type of memory that seems impossible to clear.
I have replaced a bunch of images in which I am creating a clock animation however when I try to play the animation it showes all the old images, I have tried cleaning the app and still they continue to show even though I have deleted the images.. So then I tried changing the name of the images along with the code where they were getting called and now I'm getting a bunch more errors, So I'm just woundering if anyone knows how to get around this problem of xcode caching images.
You need to clean the build or delete it from the device/simulator. That usually takes care of it if you're sure the files are named correctly. Also make sure that you're using the correct case in your filenames, that messed me up a few times. :)
In the XCode explorer, right click on the image, use "Show in finder" and make sure they refer to the images you want.
Try using the Clean option from the Product menu in XCode.

How do I determine if an image has been photoshopped?

Does anyone know how to tell if an image has been photoshopped?
edit Specifically, I want to determine if regions or pixels in the image have been altered by photoshop. I'm not as interested in finding errors in the photoshop job (missing shadows, errors in reflections, etc)
I seem to remember something like a high-pass filter that you could use that would determine the noise levels. Edited regions would have less noise, or at least changes in noise. I'm having a hard time finding information on this or other approaches.
Thanks for your help!
I use this website to check if an image is photoshopped or edited:
http://imageedited.com
HOWTO spot a photoshop job
How To Tell If A JPG Image Has Been Photoshopped (Windows)
Google is your friend for many relevant results.
maybe fotoforensic works. its an online program to compare the no of times a photo has been compressed. the no differs for the original image and the added image. hope it helps u.
http://fotoforensics.com
I would give a try with error level analysis:
http://www.errorlevelanalysis.com/
Follow the links on that site and maybe get in contact with the author, I'm sure they can give you the needed pointers.
The first thing that you have to check is the properties of the file.
If it was last save via photoshop, there should be a meta data under "details" -> "origin" -> "program name". :)