Tagged Questions
The image tag is for questions related to the loading, formatting, saving, compression, and display of images in the context of source code. This tag should also be used for assistance using various image libraries.
-1
votes
0answers
4 views
Bind graphics2d to grails img tag
I want to bind graphic from grails code, to a grails img tag. I tried several ways to do this, but none of them works:
Html:
....
<g:img bean="${Img.g}" > didn't work
<g:img ...
0
votes
0answers
4 views
Multiple image cycle scripts on one page?
I have the following code:
<IMG SRC="http://2.bp.blogspot.com/-8ChQ3SBxYOY/U9bSBt4bcMI/AAAAAAAARDE/zLDJ1kP903A/s1600/1.png" name="VCRImage" BORDER=0>
<IMG ...
0
votes
0answers
5 views
Using `bsxfun` to recursively call `improfile`
I would like to get the pixel profiles in an image between a set of point pairs, defined by their coordinates. They are arranged like this:
coords=
xpt1 ypt1
xpt2 ypt2
xpt3 ypt3
...
0
votes
0answers
7 views
display particular image associated with the listview.
I have a listView of image names.. When i click on the particular image name in listview, the respective image must be displayed. How can i do this?
My ListView is like this:
ImageName1
...
1
vote
1answer
11 views
Flipping of an image seems use lazy evaluation
I am trying to flip a list of images using rackets "2htdp/image".
Here is a minimal example of what doesn't work:
#lang racket
(require 2htdp/image)
(define images
(list
(bitmap ...
0
votes
0answers
13 views
iOS - received email doesn't display image
I want to send html along with an image in my application. This is what I have done :
NSData *imageData = [NSData dataWithData:UIImageJPEGRepresentation(image, 1)];
NSString *base64String = ...
0
votes
0answers
15 views
How to code next/previous buttons for a custom “lightbox”
I am working on creating lightbox-like functionality from scratch. So far I have the takeover element working and properly displaying an image, but now I would like to code next/previous buttons. I ...
2
votes
0answers
16 views
Where is the documentation for Image.onerror?
I'm trying to write the event handler and this is all I can find
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Attribute/onerror
which tells me nothing.
This article
...
0
votes
1answer
11 views
Facebook API get higher image resolution
I currently use the Python facebook-sdk to poll the facebook API to get a list of posts on a page's wall.
Very roughly the essential parts of this look like
import facebook
# Get access token for ...
0
votes
2answers
36 views
How do I only display the contents that is relative to the image?
so what i'm trying to do is hide the 2nd image and information when the 1st image is clicked I have already used the .toggle and set the CSS hidden style property however if you click on both of the ...
0
votes
0answers
11 views
Android - Displaying multiple images in the activity screen
What I Did: I have loaded the images in a activity screen using Gridview as below.
I can load the images like above now.
Code snippet:
I am attaching the code snippet of the "Gridview".
In ...
0
votes
4answers
32 views
change image background position inside a div?
I want to set a div at 100px by 100px and user an image that's larger than it so it shows a section of it and works like a thumbnail/preview of the full image.
My only problem is that the image ...
0
votes
0answers
9 views
grid view android layout changes automatically
I created a grid view to show all images with some information.
The grid shows the Images and the details.
But when I scroll up and down, arrangement of images changes automatically.
Why is this ...
1
vote
1answer
20 views
Image downscaling with CSS … Images are blurry in several Browsers
I'm having issues with downscaled IMGs in several browsers… The Images need to be downscaled because they're responsive to the browser size… This is my code:
#pic-holder img {
-moz-transform: ...
0
votes
0answers
3 views
how do i save histogram equalization image after move each pixel intensity?
i need help how to move pixel intensity value one by one and equalized image from left to right side and take different 255 images? how do i save histogram equalization image after move each pixel ...
0
votes
1answer
21 views
How can I display multiple images from my DB inside a grid-view under one Post ID?
I am working on a blog site. Current functionality allows a user to upload a photo (using a fileUpload control) as a part of their post (each post has a unique Post ID attached to it). However the ...
2
votes
1answer
16 views
Add a overlap between image and background
I am having trouble to fix my problem with css.
I have this in my example fiddle http://jsfiddle.net/JdLp8/
body {
background: url("http://subtlepatterns.com/patterns/gray_jean.png");
...
0
votes
0answers
18 views
displaying an array of floats as image via opencv
I'm working with c++ on a float array. I would like to display this array as an image via opencv.
this is the relevantpart of the code(dataRSLT_f_unwrapped is my data array):
CvMat MatResult;
...
0
votes
1answer
12 views
The function “GdkPixbuf.from_file” doesn't work well
I use Lablgtk and all functions except the function "GdkPixbuf.from_file" work well.
I can compile the code including the function "GdkPixbuf.from_file", but I can't execute it.
When I type the ...
0
votes
0answers
18 views
SevenZipSharp Compression rate too low
I'm searching for days for a compression method that can possibly reduce the size by at least 50%, unfortunately i can't find one...
I've used the .net one's, GzipStream and DeflateStream but they're ...
0
votes
1answer
22 views
How to change picture based into a selected option?
I would like to change the user picture as he change a select option.
<form name="main" method="post">
<div class="lock-box text-center">
<div ...
0
votes
0answers
23 views
base64_decode doesn't work for large files/images
I'm trying to decode images using base64_decode, and it works fine except for larger images. I was wondering if it might be due to a memory limit or some other server setting. It exports with the ...
0
votes
1answer
8 views
Can I type over an image and output as one image file?
Is there a way in HTML5 Canvas that allows me to type out a sentence into a text box and it puts that text onto a banner image and then allows me to save that image as one with text?
The reason I ...
-2
votes
1answer
12 views
Android fragment transfer of image
I want to pass the single Image from one Fragment to another Fragment, where the Images are placed in one Fragment and have to set them as background of FrameLayout contained in another Fragment,, ...
-1
votes
0answers
36 views
Why image tag refresh when src change after preloading?
Changing the src attribute of image works well when the image element have the exact same size as the new image.
I have the following problem:
(After an initial preload, via createElement(img)+ ...
0
votes
1answer
9 views
Cache images with picasso + okhttp
I'm using picasso + okhttp to load and cache images.
Currently this code is working as I expect and the cache is working as I want it to.
...
0
votes
1answer
15 views
Error while uploading file on Net4India
I am new in asp.net. I am trying to upload an image from sub-directory to root. It works fine while debugging the code. But when i upload on IIS it gives an
Access to the path ...
0
votes
1answer
29 views
display assets image in listview
I used this code but: The image is not getting displayed in my child activity. Please explain me in procedure how can i do .
super.onCreate(savedInstanceState);
...
-1
votes
0answers
23 views
Draw graphics on a particular page of a tiff in java
I have a tiff which contains 10 pages . I want to draw a string on a particular page (Eg :- 4) and save all the pages including the edited one to a tiff image . How can I achieve this using java ?
0
votes
1answer
23 views
full screen image on webpage is squashed when device is rotated only from portrait to landscape
Image displays fine (covers entire background) in portrait on devices, but when rotated to landscape the image is squashed. This only happens if it is initially loaded as portrait; if the site is ...
2
votes
1answer
25 views
Image not displayed read from the system hard disk
Image not displayed read from the system hard disk.
In my application I want to read the stored images in a folder called attachments. To run the application the user has to create a folder called ...
1
vote
1answer
23 views
MATLAB - Image doesn't display correctly when using global variable
I'm trying to use a global variable to store an image loaded from a .tif file. However, when I display the image, the brightness/contrast become skewed. When I remove the global declaration, the ...
0
votes
1answer
32 views
how to convert a JPEG to an image matrix in R
I need to convert a JPEG image to a matrix. I want to run SVD on the matrix.
I had used
library(jpeg)
library(biOps)
myjpg <- readJpeg("Snapshot_1.jpg")
> dim(myjpg)
[1] 398 506 3
I want ...
0
votes
1answer
15 views
A generic error occurred in GDI+. at System.Drawing.Image.Save
Hi I am getting this error while saving an Image at the given path
string WriteImage(string data, string imgPath)
{
try
{
data = "*" + data + "*";
Bitmap barcode = ...
0
votes
0answers
8 views
browser.Document.ScrollRectangle.Width is not returning the correct value
I am trying to convert a webpage to an image using the following approach posted on stackoverflow:
Convert webpage to image from ASP.NET
however, i am running into issues with certain html where the ...
0
votes
0answers
19 views
XamlParseException at runtime. Switching from x:Static to a relative component string to reference an image fixes it. Why?
I'm designing my first major app using WPF/C# and I'm trying to understand referencing Resources better.
Many guides tell me to use the first way I am failing to use.
I design a resource in ...
-2
votes
0answers
22 views
After uploading image load into img/div and save
I have an uploading code and it names the uploaded file to a random number but i want to load the uploaded img into a div/img etc in another script.
I don't want to make one script per img to only ...
-2
votes
1answer
29 views
Adding images to Javascript Code [on hold]
Right, I am trying to make this game for javascript and to customize it, I have the game working which is the basic guess your number game what im trying to do is figure out how to get my output to be ...
-1
votes
2answers
32 views
VB.NET PictureBox SizeMode not working
I have some pictureboxes, when the form loads two will be selected and an image will be assigned (SizeMode StretchImage is already set). When I am not debugging, the pictureboxes look like this:
...
0
votes
1answer
36 views
Is lossy compression just downsizing?
I am interested in learning about compression and pixelation detection algorithms. While scouring the web I stumbled across downsizing and was wondering if that is all that lossy compression ...
-2
votes
0answers
21 views
Applet not showing images or listening to mouselistener
I've made a basic java applet that implements KeyListeners, MouseListeners and a MouseWheelListener. Whenever I've tested with eclipse it works fine (excluding bugs). I recently made a self-signed ...
0
votes
2answers
25 views
Infinite Background Image html/Css
I am creating a website in which i want there to be a background image. The image is black with some characters on it. The Page, however may be 'M' pixels tall (y axis) or 'N' pixels tall (y axis) .
...
0
votes
0answers
14 views
Understanding the output from metadata Extractor
I have just started using metadata-extractor from metadata-Extractor version 2.6.4 .
Overall the API is very simple to use , but I am having problems in understanding the output of the program [ ...
0
votes
0answers
36 views
Programmatically change jpg in picturebox
I have a simple application in winforms where I need to change the image depending on an if statement. The statement is triggering because other things are also happening. I've looked at the ...
0
votes
0answers
20 views
Opencl - detecting color [on hold]
I'm getting a error compiling the kernel below..
: Using platform vendor: NVIDIA CORPORATION
terminate called after throwing an instance of 'cl::Error'
what(): clEnqueueNDRangeKernel
Aborted (core ...
0
votes
3answers
37 views
Picture display with PHP
I've a problem with some lines of code. I try to generate a picture with php and the gd2 librarie.
<?php
header('Content-type: image/jpeg');
$im = imagecreatefromjpeg('profil.jpg');
...
0
votes
3answers
27 views
pass image path in second activity and display it
Here is the code.
I tried to pass the image path from my Main_Activity to this new Activity, but the image is not being displayed in New_Activity.
So my question is: How is it possible to display ...
0
votes
0answers
12 views
Frame Buffer Image Viewer Load Subsequent Image
I was having some trouble using fbi in the following manner:
import os
import time
while True:
os.system('sudo fbi -m "1920x1080-60" --autoup -t 10 -noverbose -d /dev/fb0 -T 2 ...
0
votes
1answer
6 views
Coreldraw X3 - CDR File crashed - lost file
I am having a problem trying to open a CDR file that I think crashed. This is the 2nd time it has happened with different files.
The file still shows up in my external drive but has an icon next to ...
0
votes
0answers
6 views
Rogue images shift position between pages with HTML, JQuery
Ok guys, this seems like it should be a simple fix––but cannot find the answer. Yes, I am a new coder.
I created a fading image gallery with JQuery in the middle of a simple HTML page-with a picture ...