- Posts: 54
COMMUNITY FORUM
Browse vs Browse server
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
1. Browse
2. Browse server
I have trouble understanding the difference/point of having both options.
I did select "1. Browse" to find an image on my local disk. Selected an image and pressed Save. After a while it timed out with the following error: Fatal error: Maximum execution time of 60 seconds exceeded in xx/www/administrator/components/com_k2/lib/class.upload.php on line 4308
But when using "2. Browse server" i browsed the media directory and at the bottom of the page i could select to upload this file from local disk. The file were now uploaded without any problem.
It is so easy to fail here, cause when selecting 1 i thought to myselves that the file would be uploaded when i saved the article. But it did not, it failed to upload.
I dont get the point here, can anyone please explaine it to me, when are "Browse" to be used and when are "Browse server" to be used ?
Please Log in or Create an account to join the conversation.
- piperchick
-
- Offline
- Premium Member
- Posts: 133
There seems to be some problems with the image upload for files larger than 1mb (in spite of what your php.ini file dictates). I have not been able to resolve this, and it seems to be an intermittent problem.
1. Do you get a blank screen when you used "browse server"
2. When you "browse" do you get the blue message near the top of the screen that tells you your "changes have been saved" but they are not? In fact, your image didn't upload at all?
3. What happens if you upload a smaller file (less than 700 kb)?
4. Did you ever get your images successfully uploaded and to appear? f so, which method did you use?
If we can figure out why this doesn't work for some people, perhaps we can get a fix.
Please Log in or Create an account to join the conversation.
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
- Posts: 54
I am using an image of 4992 x 3320 pixels, total 2,56 MB
1. Created new article, selects an image (not uploaded) from the media list and pressed save. After a little while i get the following error msg: Fatal error: Maximum execution time of 60 seconds exceeded in /home/3/s/spectationo/www/administrator/components/com_k2/lib/class.upload.php on line 4311
The article are saved but no image is inserted in the article.
2. Created new article, selects an image from local disc and pressed save. After a little while i get the following error:
Fatal error: Maximum execution time of 60 seconds exceeded in /home/3/s/spectationo/www/administrator/components/com_k2/lib/class.upload.php on line 4312
There is no message that the article are saved, but it is saved without any image in it.
3. I can upload a file at 153kB using "Browse server" without any problem. I can insert a file from disk using "Browse" around same size without any problem.
But what i also notice is if i insert an image and go back to insert a new one. The new one are visible on the front of the article, but backend the old one still stays. So if i do this a couple of times i have no clue of which image is inserted for the article when looking at it backend. (This is another problem but i just mention it since we are at the image solving stuff :-))
4. Yes i get the message "Changes to Item saved". Tested with both "Browse server" and "Browse" when selecting a smaller image.
Really hope you can fix this!
It is difficult to hand over this to my client with no image upload option that works. I would actually liked to see an option to resize the image during upload also. My client is going to use digital images and as it works today he must actually make them smaller first and that should not be the case.
I have this problem on my site, if you like i can give you access to further check it out ?
For the record, i have tested to upload this image directly by using jce and that works just fine.
Please Log in or Create an account to join the conversation.
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
- Posts: 54
i cannot UPLOAD big images, and i cannot INSERT big images using k2.
I can upload the big image using jce and media manager. But i still cannot get it inserted using k2.
The image should be uploaded when using k2, and inserted in the article with the "small" "medium" and so on sizes according to what you have choosen. I also would like when uploading this big image that it should be downsized to f.ex. the "XL size" which are set in the defaults for k2.
Please Log in or Create an account to join the conversation.
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
- Posts: 54
My client is going to upload digital images and they are quite large, so therefore i tested this with a big image. Cause I cannot expect the client to use photoshop, so thats why i would like the image to be resized automaticly at upload so that it will be saved in a smaller size. I am not going to display such large image :-) I am only displaying medium images which i have set to 300 pixles.
But the fact is, the image is initially large, and i need it uploaded - preferrably resized when uploaded.
Hope this made my situation more understandable ?
Please Log in or Create an account to join the conversation.
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
- Posts: 54
Actually glad to see that you also experience the same issue, hopefully there is a bright head out there who can come up with a workaround for this version.
cheers,
jeanette
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Fancy finding you here.
Yes, it is an issue.
There are some reported cases of being able to modify server files, as yet, not got it working at K2joom.
I will have a chat to a couple of other users, might have some updates.
Simon
jeanette said:Thanks for trying anyway :-)
Actually glad to see that you also experience the same issue, hopefully there is a bright head out there who can come up with a workaround for this version.
cheers,
jeanette
Please Log in or Create an account to join the conversation.
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
- Posts: 54
No doubt in my mind that you'll find a solution !
K2Joom said:Hey Jeanette,Fancy finding you here.
Please Log in or Create an account to join the conversation.
- piperchick
-
- Offline
- Premium Member
- Posts: 133
jeanette said:sticks like glue :-) No doubt in my mind that you'll find a solution !
Please Log in or Create an account to join the conversation.
- Matt Bingham
-
- Offline
- New Member
- Posts: 1
On the item, after using the Browse server
I get Changes to Item saved after applying - although nothing seems to be saved.
On the item, after using the Choose File
Choosing a 11K JPG file.
I get Changes to Item saved after applying - although nothing seems to be saved.
Additional notes
I have noticed that after clicking Apply, additional HTML for the content of the item is being added:
(substitute "{ and }"for greater and less than)
{p} {/p}
{p},{em} {/em},{/p}
] " - It appears an these lines of code are added every time I click apply - thus adding HTML content.
It would be great if this worked - I am currently having to turn category images off, in favour of a description image.
Let me know if there is any more info I can supply to help any one troubleshoot this.
Using K2.2 / Rocket Theme (J 1.5.15) / Testing on remote shared server
Please Log in or Create an account to join the conversation.
- jeanette hustad
-
Topic Author
- Offline
- Senior Member
- Posts: 54
Please Log in or Create an account to join the conversation.
- Lahmizzar
-
- Offline
- New Member
- Posts: 4
But i found a small Programm to fit image size... its very easy to use for much pictures... just drag and drop put in image size, and all pictures were fit
if anyone interested, here is the link: www.traumflieger.de/desktop/onlinepicture/index.php
lahmizzar
_________
Please Log in or Create an account to join the conversation.
- Matthew Brown
-
- Offline
- New Member
- Posts: 5
Is there any news on this?
I'm using k2 v2.3.
The upload for an item works fine, but when browsing for an image on the server, I select the image, it populates the form field, but when i save, it doesn't save the image i've selected from the server?
Please Log in or Create an account to join the conversation.
- Willie
-
- Offline
- New Member
- Posts: 6
So I edited the administrator/com_k2/models/item.php file, to ensure that the images are resized when they are bigger than the target size, and just save a copy under the jpg quality, without resizing, on any other case.
It worked okay after that. Although I can see that there are other alternatives of coding that would produce image resizing at a fraction of the time -phase 2 I guess...
The lines you have to edit are as follows:
//Original image
$savepath = JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'src';
$handle->image_convert = 'jpg';
$handle->jpeg_quality = 100;
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = md5("Image".$row->id);
$handle->Process($savepath);
$filename = $handle->file_dst_name_body;
$savepath = JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'cache';
$src_x = $handle->image_src_x;
//XLarge image
if (JRequest::getInt('itemImageXL')) {
$imageWidth = JRequest::getInt('itemImageXL');
} else {
$imageWidth = $params->get('itemImageXL', '800');
}
if ($src_x > $imageWidth) {
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = $imageWidth;
} else {
$handle->image_resize = false;
}
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = $filename.'_XL';
$handle->Process($savepath);
//Large image
if (JRequest::getInt('itemImageL')) {
$imageWidth = JRequest::getInt('itemImageL');
} else {
$imageWidth = $params->get('itemImageL', '600');
}
if ($src_x > $imageWidth) {
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = $imageWidth;
} else {
$handle->image_resize = false;
}
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = $filename.'_L';
$handle->Process($savepath);
//Medium image
if (JRequest::getInt('itemImageM')) {
$imageWidth = JRequest::getInt('itemImageM');
} else {
$imageWidth = $params->get('itemImageM', '400');
}
if ($src_x > $imageWidth) {
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = $imageWidth;
} else {
$handle->image_resize = false;
}
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = $filename.'_M';
$handle->Process($savepath);
//Small image
if (JRequest::getInt('itemImageS')) {
$imageWidth = JRequest::getInt('itemImageS');
} else {
$imageWidth = $params->get('itemImageS', '200');
}
if ($src_x > $imageWidth) {
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = $imageWidth;
} else {
$handle->image_resize = false;
}
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = $filename.'_S';
$handle->Process($savepath);
//XSmall image
if (JRequest::getInt('itemImageXS')) {
$imageWidth = JRequest::getInt('itemImageXS');
} else {
$imageWidth = $params->get('itemImageXS', '100');
}
if ($src_x > $imageWidth) {
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = $imageWidth;
} else {
$handle->image_resize = false;
}
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = $filename.'_XS';
$handle->Process($savepath);
//Generic image
$imageWidth = $params->get('itemImageGeneric', '300');
if ($src_x > $imageWidth) {
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = $imageWidth;
} else {
$handle->image_resize = false;
}
$handle->image_convert = 'jpg';
$handle->jpeg_quality = $params->get('imagesQuality');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->file_new_name_body = $filename.'_Generic';
$handle->Process($savepath);
Best regards,
Willie
Please Log in or Create an account to join the conversation.