image

How would I get a relative path to an absolute path given an img src in Java?

hi all, I'm playing around with a webpage fetcher in java right now and I'm curious what the best way to do this in Java is. I have a link: e.g.: http://www.nytimes.com/2010/07/08/technology/personaltech/08pogue.html?ref=technology and when I crawl that page I might find img src paths like "../public/images/header.jpg" "../../test/log...

How do I Disable a button with an image without reducing the alpha in obejective C?

After creating a round rect button, i disabled the button and the alpha of the button stays at 1 unless i reduced the alpha to 0.5 manually. But after inserting an image to the button, the alpha of the button would be set to 0.5 automatically even after setting the alpha to 1 after disabling the button. I would like to disable the butto...

parse Google Image search results without Google AJAX API

Hi, How to get Google Image results URL on Ruby without using Google AJAX API. I tried to get all node with tag and id beginning with ipf* but I got only 11/21 images URL... with these APIs :'open-uri' and 'rubyful_soup' It seems Google has merged HTML (for the 11 first results) and dynamic HTML generated by javascript (for the 10 ot...

image magick problem with java

to be specific in this i'm trying to run the next line on java: convert /home/mohamed.hegab/Desktop/1263392123111.jpg -gamma .45455 -resize 400x400 -gamma 2.2 -quality 92 /home/mohamed.hegab/Desktop/small.jpg which is run great on the bash command line but when i run it on the java using process builder it gives me strange result. ...

Java image transformation

I need to create 3d depth effect for my image. Number 1 is what I have and number 2 is shape where I want to transform number 1. So is there any method for that in Java standard graphics libraries or some other open source libraries? ...

Wordpress 3 Multisite with same Medialibrary

Hi, i created a Worpress 3 Multisite with 5 Sub-Blogs. Is it possible to share the same Media-Library in this Blogs? i changed upload_path in wp_1_options and wp_2_options for example and also in my backend in "Super Admins" Menu but it has no effect. The files are uploaded to wp_contents/blogs.dir/1-2-3/files and the options have no ...

android - how to assign an image to a button??

i want to assign an image to one of the buttons in my activity?? how do i do that?? and for that where shall i place image.jpeg or any othr image file?? ...

codeigniter image manipulation question

Having a problem with image manipulation in codeigniter - it bombs when I get to $this->image_lib->resize(). I just can't see the error. Code: $imagemanip = array(); $imagemanip['image_library'] = 'gd2'; $imagemanip['source_image'] = '/resources/images/butera-fuma-dolce.jpg'; $imagemanip['new_image'] = '/resources/images/thumb_bute...

Smoothly preload largeish background images

I have a site which uses largeish (60-100k) background images which vary from page to page. When the user loads the page for the fist time, the page content is loaded first and the background image appears a short time after. This is, I understand, intended behavior in browsers but it makes the page loading look quite "bumpy" on slow...

Linux images to video, double digit problem

i have a list of images which im trying to convert to a video. the images are the following: t2.jpg t3.jpg t4.jpg I can convert those three images into a video with: ffmpeg -r 5 -i t%d.jpg -y -an video.avi but if i turn the names to t20.jpg,t30.jpg and t40.jpg, it doesn't work anymore. and changing %d to %02d doesn't make any differen...

Resizing a cell's height and Witdth and loading an image in QTableWidget

Hi I want to make a 8*8 table with square cells ( a chess board ).Now I have the code to make the table but don't know how to resize the cells to be square shaped. I also want to put picturs of pieces into the cells. How should I do these? here is the code i have: #include <QtGui/QApplication> #include "mainwindow.h" #include <QHBoxL...

Jquery popup plugin

I am looking for a plugin that will popup a full size image WITH HYPERLINK when user clicks the thumbnail image link. I found http://leandrovieira.com/projects/jquery/lightbox/ is useful but I can't add the hyperlink to the full size popup image. Anyone has idea where to get it or how to do it? Thanks a lot! my jquery: $('#projects a...

Images On The Description Of An RSS Item

I'm starting with RSS development, for my new site, but I want to know if there is any way to put images on the description of a item, something like this: <item> <title>Image Test</title> <link>http://testin.test&lt;/link&gt; <description>Some text... <img src="image.jpg"></description> </item> And if it's po...

resize an image to an exact size, retain aspect, and fill any space in php

hy, Let's say I want to convert an image to an exact size, eg: 400x300. The trick is, if the image, due to its aspect ratio, does not fit in 400x300, then place it in there with black borders. A 900x1200 image would be converted down to 225x300 to retain its aspect ratio, and then given black borders left and right to make it 400x300. ...

iPhone load image without extension

Hi all! I have this problem... I need to load an image from the resources of my app that is called for example mystuff01.jpg but maybe be called mystuff01.gif or png, now, what's the best solution to do this? In my mind there's a cycle to retrieve if the file exists and if exists load it... there's a better solution? thanks ...

iPhone load partial image

Hi all, I need to load a part of an image into a uiimageview... for example an image that is 100x100, only display 100x50... thanks ...

how to convert image to byte array in java?

hiii!! i want to convert an image to byte array and vice versa. here user will enter the name of the image(.jpg) and program will read it from the file and will convert it to byte array. thanks.. bye ...

Automatic HTML preloader

Hello, I've an page that will load chunks of HTML using ajax. All those fragments will have images and some of them will be specified in a separate CSS using background-image. I wanted to write a pre-loader, so that the loaded chunk will show up only when all the loading is complete. If all the images would have been in the HTML chunk, ...

passing the right BytesArray into the MemoryStream for Image

Hi, there a way to determine that I am passing the right byte array to the MemoryStream if I want to create an Image out of byte array. MemoryStream mStream = new MemoryStream(); mStream.Write(byteArray, 0, byteArray.Lenth); Image imgObj = Image.FromStream(mStream); How can I, if possible Correct the byteArray that it is a valid byteA...

Pile of images to video

What's the best way of turning a pile of images into a video? I'm on Linux, by the way. ...