Most voted "image" questions
An image is the visual representation of an object through techniques of photography, painting, drawing, video or other disciplines.
Learn more…763 questions
Sort by count of
-
43
votes2
answers6588
viewsHow can I pause and play a gif?
I want to put on my site, a system like 9gag, where people can pause and give play in a .gif. I know I have to use two images, one .jpg and a .gif, but tried some functions and could not. I found…
-
41
votes2
answers1150
viewsHow to count the objects present in the image with PHP?
The original photo of the bean is this: It lowers the resolution of the photo, I’ve already applied a grey-scale filter and increased the contrast to maximum to turn black and white. Then I examined…
-
36
votes8
answers309745
viewsReduce image size and maintain CSS aspect ratio
If I have a horizontal image (320x205), <div class="container"> <img src="imagem.jpg" width="320" height="205" /> </div> and I put the CSS rule .container img { max-width: 200px;…
-
29
votes3
answers13164
viewsWhat are the default sizes of android images?
I’m creating my first app on the Android platform and as far as I know one of the negatives of this platform is that existing devices on the market have different screen sizes. I created a project…
-
27
votes3
answers14943
viewsA Base64 image loads faster than a url?
I am developing a page where I need to have the images displayed only after loading them. And, not to leave the space of the empty images, I thought to use some image of "Loader". So, I thought that…
-
26
votes2
answers5355
viewsGet colors from the image
There is a possibility (with plugins or not) to catch the [main] colors or the predominant colors, similar to Adobe Kuler, image? Example I have this image: And I wanted to take her main colors,…
-
23
votes1
answer975
viewsWhat is an SVG?
Nowadays, we talk about image quality and always linked to this type of statement every now and again, this mysterious acronym appears. It seems to be SVG something really amazing, they say that…
-
20
votes3
answers4043
viewsHow to add a CSS class to images that didn’t load?
I have an HTML page with numerous images presented as follows: <img alt="img1" width="50" height="120" src="my_image.jpg" /> <img alt="img2" width="50" height="120" src="another_image.jpg"…
-
17
votes1
answer154
viewsGuidelines for Visual Assets
I’m developing an app for Windows 10 and on the Microsoft website does not state what is the standard to be adopted for IMage Assets: Square 44x44 Logo, Store Logo and Badge Logo. The image below is…
-
16
votes5
answers21918
viewsHow to replace the <img src> of a small image with a large image?
Information: I’m trying to make a simple photo gallery. I want to show the large-sized image in the center of the screen. (Clicar em 0.jpg e mostrar em uma outra div 0Large.jpg) Problem: With the…
-
16
votes2
answers1819
viewsHow to make a gif run only once?
I have a GIF and I want it to only run once, with no repetitions. Is there any way to do this? How?
-
15
votes1
answer10056
viewsUpload images with Crop and resize, jQuery and PHP
I need a function in which the person should upload an image, and it should "crop the image", leaving it in the right size, Facebook style and then should be saved in the databank. I tried several…
-
14
votes3
answers333
viewsIs there any advantage in bringing together all the icons of a website in a single image?
I see on most large websites that the icons used are grouped in only one image, which leads to the download of only one file by the user. Is there some benefit in speed gains or is it just a matter…
-
13
votes3
answers1792
viewsHow to create a solid mask from a semi-transparent Bitmap?
I want to create the image on the right from the one on the left. And I have the following structure: var Image, Mask : TBitmap; begin Mask := TBitmap.Create; Image := TBitmap.Create;…
-
13
votes1
answer593
viewsAnti-aliasing algorithm in Java
I’m using the method setRenderingHints from the awt library to do anti-aliasing. The method provides a significant improvement in the rounded 2D objects. How does the algorithm work? What are the…
-
12
votes2
answers4725
viewsImage rotation in java
I need an algorithm to rotate an image in java. On the Internet I found a promising algorithm at this link, and I tidied it up and adapted it to use angles in degrees. It was like this: public…
-
12
votes2
answers1657
viewsHow to generate noise in an image using python?
How to generate a periodic noise of the type Moiré in an image at gray levels using Python?
-
11
votes5
answers1015
viewsLine with image in the middle
I wanted to style a hr to support an image in the middle. Type: ------ image ------ I thought of making the image already with line ready in Photoshop, but this makes it difficult to be responsive.…
-
11
votes2
answers4778
viewsHow to load default image if src="" does not find?
Is there any way to upload a standard image, using only HTML, case the first src="" can’t find the file? <img src="ola_mundo.png" alt="Olá Mundo"> // Existe algum atributo para isso?…
-
10
votes1
answer12693
viewsWhich DPI is recommended for images used on websites?
I have always used 72 dpi in my images, but currently this standard has low definition thanks to the variety of devices with different resolutions (notebook, tablet, smartphones and etc). What would…
-
10
votes2
answers73740
viewsHow to access the print screen image?
When we hit the button Print Screen from our keyboard, the screen image is saved in some cache, in memory, somewhere, because when we give Ctrl V after, in Paint for example it trims, how to access…
-
10
votes1
answer338
viewsWhat is the purpose of the "Image" input?
Only now have I realized these days that there is one input with the attribute type equal to "image". I saw this being used on some site (very old by the way) to submit a form. I have the following…
-
10
votes2
answers565
viewsWhy doesn’t Firefox display WEBP images?
I made a slide on a site where I use images that were passed to me in WEBP format. I thought it was all right because in Chrome everything was working. However I noticed that in Firefox (version…
-
9
votes2
answers6651
viewsImage Upload
I am trying to upload images to my application. I have made a prototype upload, but it does not show the image, but its ID or NAME. And I’m uploading it to a folder I created in my project. My…
-
9
votes3
answers6948
viewsHow to crop an image to the center when uploading it
In the project here I want to display the images in a dynamic dimension square div where its maximum size is 240 x 240. Assuming a user uploads an image with rectangular dimension (ex: 500 x 280),…
-
9
votes2
answers1725
viewsMy image does not appear in Imageview
I’m looking for the image in Sdcard. It happens all right, open the gallery, select the image, but the selected image does not appear in Imageview. Code: public void btnFoto(View view){ Intent…
-
9
votes2
answers300
viewsIs it possible to do this effect with CSS?
Indeed demonstrated in the video below Sony Spherize makes it seem as if the photo character is "breathing", there is some way to do it the same, or simulate something similar to CSS? Link to the…
-
8
votes2
answers12416
viewsResize image with PHP while maintaining aspect ratio
I would like to resize images by the ratio from a remote link using PHP. This is possible? Type: http://site.net/imagem.jpg for…
-
8
votes3
answers1740
viewsHow to put caption in an Imageview
I wonder if it is possible to put caption in a ImageView similar to the image below, if possible an explanation or study material.…
-
8
votes1
answer1017
viewsMemory usage PHP images
I have an image upload and to treat the images I’ve used (Imageworkshop and Imagine), however the problem is not the libraries, it is the absurd amount of memory that is used in some situations.…
-
8
votes2
answers17280
viewsHow to crop an image - HTML
I need to make an image inside a div be with a width of 600px and a time of 300px without distorting the image. I have a notion about css3 and Html5 and am working on the layout of a blog on the…
-
8
votes1
answer159
viewsHow does logic work to figure out the size of the image?
In PHP and other programming languages, it is possible, through some special functions, to discover the image size. For example: list($width, $height) = getimagesize('images/icon.png'); I was…
-
8
votes2
answers690
viewsHow do I convert PNG to JPG in C#?
I’m working on an old project that uses ASP Site. I need to convert PNG image to JPG. How to do this? Note: I don’t want to rename the file, I want to transform the mime of image/png for image/jpeg.…
-
8
votes4
answers2279
viewsResponsive image
How to do the effect below little by little, according to the screen resolution. *Without using clip, because otherwise would be many media queries, and on this site, the effect seems a smooth…
-
7
votes2
answers6229
viewsChange image src through jquery
I’m using the plugin Animated Responsive Image Grid and I want to change the image src through Javascript/Jquery. Html code: <div id="ri-grid" class="ri-grid ri-grid-size-1 ri-shadow">…
-
7
votes3
answers16195
viewsHow to replace src of an img tag?
I have an html page that shows an image for each day of the year. Images are organized in folders for example /img/o1/o1.jpg (for January 1) and so on. My html is simple I want you to take today’s…
-
7
votes2
answers1889
viewsMethods of image storage
I am studying what is the best way to store some images of users that are registered in my system. I found 3 ways to solve this problem: Save to local directory, Save as BLOB and Save as Base64. I…
-
7
votes2
answers2411
viewsCount how many pixels of a color the image has
I am working on a solution for tattoo studios. I would like to know how it would be possible to determine how many pixels a certain color exists in the image inserted in pictureBox1. In this image,…
-
7
votes4
answers18311
viewsHow to flip (mirror/flip) an image
Well, I need to invert an image preferably if possible with CSS. I don’t know if it’s possible. I wanted to point the arrow to the left. Thank you…
-
7
votes4
answers18311
viewsHow to flip (mirror/flip) an image
Well, I need to invert an image preferably if possible with CSS. I don’t know if it’s possible. I wanted to point the arrow to the left. Thank you…
-
7
votes1
answer6022
viewsHow to crop a gallery image or photo taken by the camera, save and upload to an imageView
I would like to know how to cut an image from the gallery or photo taken by the camera, save and upload to a imageView, to be able to do that for the gallery option of intent, but for the camera…
-
7
votes2
answers1130
viewsWhat is the safest way to identify that the upload file is an image?
I’m making a system where I can receive an image upload. To check on the server if the file type is image, I thought of this code: if (strpos($upload->getClientMimeType(), 'image') !== 0) { throw…
-
7
votes1
answer487
viewsWith CSS is it possible to make a hollow circle in an image?
I wanted to put a "leaked" area on the image, so that the image has an empty area and I can see the background that is behind that image. Example. I managed to get here, but I can’t place the image…
-
6
votes2
answers4039
viewsWhy use Bytes instead of Image? What is the best practice?
I would like to know why to use the data type Bytes instead of using one’s own Image. If the SQL Server database has the Image data type, then it should be easier and more practical to enter in mode…
-
6
votes1
answer307
viewsPHP code refactoring to provide image with specific size
The code below aims to provide an image with specific measures to minimize its size and thus optimize the web-site loading. Problem The image takes more than 1 second to be provided, making it a…
-
6
votes3
answers3192
viewsWhy so many folders with the name "Drawable" on Android?
I have a silly question. I already know the folders Drawable in the Android is to put the images with the relative resolutions. For example, the folder drawable-ldpi is to put images with low…
-
6
votes2
answers6008
viewsHow do I make the browser not store image caching with HTML or PHP?
I am creating a web page that is practically only image, every day I change the images of the page but their name remains the same. The browser is storing a lot of cache and each time I update the…
-
6
votes4
answers6579
viewsResize image
Well my system has an area where the user registers information about the site. So register images. The system does not restrict image size. Then on the site are presented the images. However there…
-
6
votes2
answers9366
viewsHow to split an image into multiple parts with link?
I would like to know how to split an image that can have multiple parts so that I can define the number of parts, and assign a different link to each part. Bonus: If the parts can assume any…
-
6
votes1
answer1438
viewsHow to make an image "loose" inside a div
I need to leave a "loose" image inside a div on my mobile site. A div has fixed dimensions but the image is much larger, so it would have to be something similar to iframe, however, without scroll…