An open-source PHP library for image manipulation. The library provides a simple way for loading, manipulating and saving images in the most common image formats.
Questions tagged [wideimage]
26 questions
0
votes
3 answers
php resize function not working when file greater than 2 MB
I am using the following function to upload image file and resize.
public function upload()
{
include_once 'wideimage/WideImage.php';
$ext = $this->detect_type();
$file_name = 'uploads/' . time() . $ext;
…

Cody
- 2,480
- 5
- 31
- 62
0
votes
0 answers
Creating a large image out of many small ones in PHP without running out of memory
I am trying to create one very large image out of many small ones in PHP using WideImage library.
If the image becomes too big, the server obviously runs out of memory.
Is there anyway to solve this problem by executing this process in batches, or…

Alex
- 1
- 2
0
votes
1 answer
File_exists() is returning false when it should return true, what can be causing this?
I edited the entire question to better represent the answer.
I had a for loop which would access and edit image files. Within the loop a file_exists() check was made. If the image file did not exist a blank one would be created.
What was happening…

Alex
- 1
- 2
0
votes
1 answer
Display PNG from database using WideImage
Using the WideImage extension, I am attempting to render an Image Blob from the database using this function:
protected function renderControlNonEditable()
{
assert('$this->model instanceof Item || $this->model->getModel() instanceof…

GO3DExpansion
- 98
- 9
0
votes
1 answer
production server fails to upload wide images
This is the situation:
I'm building a symfony2 web site, and I'm using the (excellent) vx/js-upload-bundle bundle in order to integrate blueimp's jQuery-File-Upload component.
On my computer (of course) I had no problems, but on the production…

Ami Malimovka
- 437
- 7
- 22
0
votes
1 answer
wideimage lib - can't get resizeCanvas() to work
I want to make a white square in which I center image inside, but the problem is that I get back image without white canvas. i get back the same image that i uploaded (not processed).
$image = WideImage::loadFromFile(FILE_DIR."tmp/".$img);
$h =…

aainaarz
- 782
- 1
- 7
- 14
0
votes
1 answer
Keeping aspect ration when resizing images using WideImage PHP library
I am looking to resize an image to a pre-defined maximum size keeping the aspect ratio with the help of WideImage Library.
Example:
Maximum Allowed Dimesions: 200x200
Input Image Dimension: 300x200 logo (1,5:1 aspect ratio),
Current Output Image…

Purus
- 5,701
- 9
- 50
- 89
0
votes
3 answers
Output wideimage to page
I'm trying to use the WideImage plugin and loading an image into it, resizing it, and then outputting it in the following form:
I have this so far:


Burrows
- 475
- 2
- 8
- 18
0
votes
1 answer
WideImage library not included on IPhone
i have a really strange problem. Im using the WideImage Library on my Server to manipulate Images. The Library is included in a php-File. Like this:
define('DOCROOT', realpath(dirname(__FILE__)).'/');
require_once(DOCROOT .…
0
votes
2 answers
PHP WideImage check if valid image
I am using wideimage to manage images uploaded to my application. However, currently I do no validity checking on the documents so the application always assumes what gets uploaded is a valid image document. How can I use wideimage to check if the…

Ozzy
- 10,285
- 26
- 94
- 138
-1
votes
1 answer
Cropping image only if aspect ratio difference is small
What I'm trying to do is creating a thumbnail. Well no problem so far. I'm using the WideImage Library.
The challenge is cropping the image, when his aspect ratio only differs a little from the aspect ratio of the thumbnail that needs to be made.…

Mike
- 5,416
- 4
- 40
- 73