iOS Loss of image quality and resolution - xcode

I have and imageview that i use throughout my app. It can hold a picture from the gallery or from the camera.
In the end I upload it to a webserver using php.
But where does xcode downscale my image? Ipad pictures are aprox. 300x300px.
Tried downloading a 1000+ x 1000+ pixels image, but it looks like it gets downscaled once i open it trough uiimagepicker. In my gallery its fine before i start my app, but when i add it via my gallery its low res.
I need these images with the resolution they were made with.
Is there any way to obtatain that?

Related

how can I cache a small part of image in flutter?

How I can show the image in the app like the social network?
My meaning is I show a blurred preview of the image (not download completely) then if the user clicks on the image, app downloading the image completely and shows.

Xcode 10 UIBarButtonItem Images Vanish On Storyboard

I am using the latest version of Xcode 10 that's available in the app store. I keep losing UIBarButtonItem images in the designer. They are visible when the app is run. I can get the images back by switching the image to a different one and then switching it back again. This is what it looks like when the images are gone:
This is what it looks like when the images are visible:
If I change one image, all of the images on the screen come back. They will generally stay until I close down and reopen the app in Xcode.
They always display correctly when run on an actual device. I have tried it on multiple iPads, an iPhone, and every device simulator that I could find. This is only an issue with images on the designer.
This is how the images are set up in Xcode:
The 1X image is 24x24, the 2X image is 48x48, and the 3X image is 72x72. All images that I am using were created in Affinity Designer. They were all saved as PNG files. This is a file with the images that I'm using for the checkmark: Checkmark Files
All of the images have the following settings:
This is what the settings for the UIBarButtonItem looks like.
So far, this is just an annoyance that is happening in multiple apps that I'm working on. I'd just like to figure out why it is happening and if it is just an Xcode bug.

Can dropzone.js allow image cropping and rotating before upload?

I have the uploading and previewing working just fine but sometimes the images are sideways or need to be cropped. If not maybe it can work with in conjunction with another library?
This site mentioned that it could:
https://colorlib.com/wp/jquery-file-upload-scripts/#comment-621899

Not able to open thumb-nail image on mobile device

Website
I am using a Magento website which is not able to open the thumb-nail images on the mobile devices. I changed the css file for different resolutions inside the media block but still not able to open the images.
The images inside the red square are not opening in the mobile devices. Whenever i click on any of those images nothing happens.
The image are opening in the desktop for all size of display.
Is it happening because of wrong css code or some other reasons.
Your resolution for that size add proper image width and height in CSS.

How to make UIImageView load retina and non-retina images

I'm new in iOS programming and I don't know how to make UIImageView load content depending on the screen that is running the app. In my case i have a 100 frames animation. Is possible to scale the images for non-retina displays (the images are in 640x960 resolution) automatically using code? Thanks!!
Yes. Just add normal images at your project (image1.png, image2.png, ...) and your retina versions (image1#2x.png, image2#2x.png, ...). The retina versions must have "#2x" appended at end of the name.
Just use the versions without "#2x" in your code, and the Xcode will do the rest. Additionally, you can import just "#2x" versions, use image without "#2x" in your code and iOS will downsample automatically in non-retina devices.

Resources