Все вопросы: [jpeg]

156 вопросов

похожие теги: jpeg-xrhtml-to-jpeg
0
голосов
3ответов
557 просмотров

Is decode-interrupt supported in libjpeg?

I am using libjpeg for decode jpeg file. when decoding a large image, user may switch to another jpeg file, So is decode-interrupt supported by libjpeg? Many thanks!

7
голосов
2ответов
18814 просмотров

creating my own MJPEG stream

I'm trying to create an MJPEG stream, I have a series of jpegs that I want to put together into a stream so that a user can just hit a URL and get an mjpeg stream. I've been trying for the last few days to get this to work, and it may just not be possible. I've brought up ethereal and listened t...

4
голосов
5ответов
4181 просмотров

Is there any free or commercal jpeg decode which is really fast

I am using c++, libjpeg for decoding jpeg file. I find it is not fast enough, is there any method to make it faster by setting some compile parameter? or are there any other lib can open jpeg files more faster? now it takes about 750ms to open a 4368 * 2912 4m jpeg image. I wish this can be redu...

2
голосов
1ответов
1255 просмотров

Preferred way to copy JPG files from a remote server using PHP

I'm using PHP to copy JPGs from a remote server to my own server. Is it best to simply use the copy() function, or are the jpeg-specific functions better? For example: $copy = copy($remote_url, $dest_file); -OR- $img = imagecreatefromjpeg($remote_url); $copy = imagejpeg($img, $dest_file); i...

6
голосов
4ответов
16832 просмотров

Convert Bitmap Files into JPEG using the GD library in PHP

I have been trying to figure out a way to convert bitmap files into a JPEG using the GD library in PHP. I have tried numerous implementations but nothing seems to work. I have tried to tell my client that they should not use Bitmap files but he insists and quite frankly does not comprehend enou...

2
голосов
1ответов
590 просмотров

.Net - Argument Exception When Trying to Convert Bitmap to JPEG

So I was trying to convert a Bitmap image to JPEG in code and I keep getting this error: An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dll Additional information: Parameter is not valid. Here is the related code. All the paths are correct a...

15
голосов
8ответов
25230 просмотров

How can I read XMP data from a JPG with PHP?

PHP has built in support for reading EXIF and IPTC metadata, but I can't find any way to read XMP?

10
голосов
5ответов
13113 просмотров

Capture Qt widget as an image file

I'm working with QGLWidget (Qt widget for OpenGL) and want to be able to capture the screen displayed by the widget as JPEG files. How can I achieve this? Is there a function that return what is currently displayed on the widget as an image?

0
голосов
4ответов
5831 просмотров

How to get EXIF data from my jpegs?

I have to link a date and a name to some jpegs that I am including in my bundle, or possibly downloading from my own server to the Documents folder. Is there a way to extract EXIF data easily? If so, then I will use EXIF to store this info. If not, then I will have to create a database or fl...

13
голосов
1ответов
9632 просмотров

Decoding a JPEG Huffman block (table)

The following block is nested by Huffman block markers -HUFF---------------------------------------------------------------------0084- 10 0 1 2 4 3 4 6 5 6 8 a 9 4 2 3 0 1 2 11 0 3 4 21 5 12 31 6 41 51 61 13 ...

3
голосов
3ответов
22668 просмотров

HTTP headers for jpg files after mod_rewrite

I'm using Apache's mod_rewrite to route requests for JPG files to a directory outside my web root. It generally has been fine, but there are a few images that do not display. I then realized that when I use PHP's get_headers() function on my image URLs, they are all returning Content-Type: tex...

31
голосов
4ответов
19682 просмотров

Determining the size of a JPEG (JFIF) image

I need to find the size of a JPEG (JFIF) image. The image is not saved as a stand-alone file, so I can't use GetFileSize or any other API such this one (the image is placed in a stream and no other header is present, except the usual JPEG/JFIF header(s)). I did some research and found out that J...

0
голосов
1ответов
527 просмотров

How to know the compress rate of a jpeg image?

Is there any method to know the compress rate of a jpeg image? When I am using photoshop, I can set the compress rate when saving a jpeg image, When I am opening a jpeg image, can I read the compress rate of it? I am using freeimage, c++, however I do not find the API. Many thanks!

6
голосов
2ответов
5722 просмотров

Converting from HBITMAP to Jpeg or Png in C++

Does anyone know how I can use an HBITMAP variable to write a png or jpeg file? I first looked into doing this with GDI+ but it gives me errors telling me min/max haven't been defined (defining them just brings more problems), I then looked into libpng's C++ bindings (png++) and couldn't get the...

4
голосов
5ответов
5976 просмотров

Using jpegtran, jpegoptim, or other jpeg optimization/compression in C#

I've got 100's (maybe 1000's) of products with 10-30 images of each product coming to an online store I've put together. I need to optimize the images' file sizes as much as possible without loosing image quality. I haven't used jpegtran, jpegoptim, or any other jpeg optimizer directly but I hav...

0
голосов
2ответов
2613 просмотров

print a jpg

I've been trying to print a dynamically loaded jpg and for some reason it's never printing to scale, not sure what I'm doing wrong so here's what I've done so far var request:URLRequest = new URLRequest(getAbsPath("pages/" + pagePrint + "_big.jpg")); var loader:Loader = new Loader(); loader.load...

7
голосов
4ответов
2185 просмотров

Security issues in accepting image uploads

What are the major security issues to consider when accepting image uploads, beyond the normal stuff for all HTTP uploads? I'm accepting image uploads, and then showing those images to other users. How should I verify, for example, that the uploaded image is actually a valid image file? Are the...

0
голосов
1ответов
294 просмотров

Accessing raw image data with Snow Leopard

I develop with XCode 3.2 under Snow Leopard, and I want to read a jpg-file from disk into memory and manipulate directly with the raw image bitmap presented as a C char array. How can I achieve this?

1
голосов
2ответов
2798 просмотров

Any java library for ppt to jpg conversion?

Do you know any java library for ppt to jpg conversion? I've tried openoffice3 and POI (http://poi.apache.org/slideshow/quick-guide.html). OpenOffice takes quite long to load (full startup), even though I want to convert the slides only. POI-HSLF only generates images for simple slides (create...

0
голосов
2ответов
1637 просмотров

How to get the compressed image data from JPEG encoder in Java

I want to compress an image using JPEG encoder and instead of writing it to a file I want to pass the compressed data to another application. My problem is that I can compress the data but don't know how to get that compressed image data. I am using this code : out = new FileOutputStream ( file...

3
голосов
2ответов
4579 просмотров

check manually for jpeg end of file marker ffd9 (?) in php to catch truncation errors

basically trying to remove corrupt, prematurely ending jpeg files from a collection. i figured if the end of file marker was absent then that meant the image is truncated and therefore i would consider it invalid for my purposes. is this method of checking sound? if so any ideas of how i could im...

5
голосов
2ответов
2766 просмотров

Color profile detection in JPEG

I would like to be able to detect the presence of a color profile in JPEG. To be clear: I'm not interested in actually carrying out the color corrections or doing anything else with them. I did some investigation, but I could not find any definite source of information. Here is what I know so fa...

5
голосов
4ответов
15512 просмотров

Compressing IplImage to JPEG using libjpeg in OpenCV

So I have this problem. I have an IplImage that i want to compress to JPEG and do something with it. I use libjpeg. I found a lot of answers "read through examples and docs" and such and did that. And successfully written a function for that. FILE* convert2jpeg(IplImage* frame) { FILE* outstrea...

2
голосов
1ответов
2153 просмотров

Why do I sometimes get an error in Reporting Services when I export a report containing .jpg images to MS Word

When you create a report using SQL Server Reporting Services 2008 (SP1), that uses .jpg images sometimes you get the following error when you export the report to word. Index was outside the bounds of the array. Description: An unhandled exception occurred during the execution of the current w...

1
голосов
1ответов
2739 просмотров

Saving a PNG (or good quality JPG) image to the Photos Library

Scenario Saving a 320x480 view as an image in the user's saved photos album. Problem Always saves a 800x?, low quality JPG. Using the normal renderInContext/UIImageWriteToSavedPhotosAlbum method to save a view to the library. I've tried converting the UIImage to a PNGRepresentation then using t...

1
голосов
2ответов
751 просмотров

Streaming Jpeg Resizer

Does anyone know of any code that does streaming Jpeg resizing. What I mean by this is reading a chunk of an image (depending on the original source and destination size this would obviously vary), and resizing it, allowing for lower memory consumption when resizing very large jpegs. Obviously ...

1
голосов
3ответов
4476 просмотров

cvLoadImage() fails whem loading *.jpg

I am trying to load a JPEG image using the cvLoadImage function and it fails. I get the output "image not loaded" (see the code below). However a window appears but no picture. When trying to load png pictures the cvLoadImage operation is successful, i.e. the picture is presented in a window. Is ...

0
голосов
1ответов
923 просмотров

How to call JMagick from a web application

I have a servlet based application for serving stored documents and images. The images were all stored as jpg with standard sizes based on corporate standards at the time the system was designed. Now, the image sizes that users want to see have changed. Since there are many images that won't n...

23
голосов
3ответов
16764 просмотров

Are all JPEG files JFIF?

Active Directory can store images in JPEG File Interchange Format (JFIF) according to the jpegPhoto Attribute definition. I'd like to use this but I'd never heard of JFIF. First, are all JPEG files JFIFs? Second, does a WPF JpegBitmapEncoder produce a JFIF file? I guess if the first is true...

1
голосов
1ответов
1404 просмотров

Modifying JPEG headers in C#

I'm trying to open a file to bytes, convert it to a string, modify some data (think Steganography) and convert the file back to bytes and save it as a jpeg. So far, everything I've tried has corrupted the file in converting it to a string. I've tried converting it to a 64-bit string, but of cours...