Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

multiple file drag upload and gif, png background black problem #663

Closed
mgzawlinoo opened this issue Jul 1, 2016 · 14 comments
Closed

multiple file drag upload and gif, png background black problem #663

mgzawlinoo opened this issue Jul 1, 2016 · 14 comments

Comments

@mgzawlinoo
Copy link

Hi,
When I drag and upload multiple images , they all change to like this
eg 1.jpg change to 1.jpg, 1(1),jpg , 1(2),jpg . so it change to three file for one images,

And I can't upload gif and png format, I don't know why . they all have black background.
Hosting - Digital Ocean (Ubuntu 14.04)
Modx version - 1.1

@mgzawlinoo
Copy link
Author

I test with modx version - 1.0.14
no problem with multiple upload and gif, png black background.

@mgzawlinoo
Copy link
Author

kcfinder images plywood smartborad gypsumborad

@mgzawlinoo
Copy link
Author

just like that , when I drag 4 or more photos and upload . They will automatically change to triple files.

@mgzawlinoo
Copy link
Author

gif, png thumb background change to black
resize png background chagne to black . But I disable resize image function at modx setting and it's solve . Please help me to fix the code?

@mgzawlinoo
Copy link
Author

Problem solve ,
I copy mcpuk folder from 1.0.15 and replace . Problem solve .

@Deesen
Copy link
Contributor

Deesen commented Jul 4, 2016

Maybe you want to reopen the issue so we can solve it for 1.1.1 ?

@mgzawlinoo mgzawlinoo reopened this Jul 4, 2016
@mgzawlinoo
Copy link
Author

Thz deesen , I'm replace old version mcpuk , black background (png,gif) problem solve . But still have drag upload when I upload more than 5 images.

@Nicola1971
Copy link
Contributor

Same issue for me with 1.1, but i have multiple copies of the same image , even when i upload a single image with drag and drop

@Deesen
Copy link
Contributor

Deesen commented Jul 4, 2016

I tested it with MODX´s logo.png and v1.1. I renamed the image to logo2.png and uploaded it via drag´n´drop using Firefox & Chrome. Also tested multiple files (1 png, 3 jpg´s). Result: Only 1 copy per file, and the background is also correct. So everything works like expected on 1 installation so far for me?

@janniconl
Copy link

janniconl commented Jul 5, 2016

I have the same problems on my 1.1.1 installations. Although only one server with the multiple upload problem.

Server 1: just black images problem, for PNGs
Specs:
PHP Version: 5.3.5
Database: 5.1.53
Modx: 1.1.1 latest dev
Chrome: latest version

transp1

I think the problem here is that the thumbnails are generated as .JPG, while the source image is .PNG

Possible solutions/similar issues:
http://stackoverflow.com/questions/19953600/php-thumb-resize-png-image-but-add-black-background
masterexploder/PHPThumb#116
masterexploder/PHPThumb#58

Maybe make thumbnails PNG when source is PNG? Of just set the background to white when converting PNG to JPG?

Server 2: black images problem, for PNGs + upload issue
Specs:
PHP Version: 5.6.22
Database: 5.5.5-10.0.20-MariaDB-cll-lve
Modx: 1.1.1 latest dev
Chrome: latest version

Here also the PNG->JPG black background issue.
Also have the problem when I upload even 1 image, it is duplicated with the addition of (1) automatically:
dupe

@janniconl
Copy link

Anyone found a solution for this?

Especially the black background issue is really nasty and raises a lot of questions at my clients :(

@bossloper
Copy link
Contributor

Working fine for me on MODX 1.1.1-beta3. Chrome and Edge browser. PNG backgrounds are fine and no duplicates.

Only thing I can think of is, is it something to do with the PHP GD library setup on some systems (particularly the PNG issue)?

@fourroses666
Copy link
Contributor

fourroses666 commented Feb 15, 2017

On some hosts I have these multiple images tooo and it sucks :(

@Dmi3yy Dmi3yy closed this as completed Jul 15, 2017
@Dmi3yy
Copy link
Collaborator

Dmi3yy commented Jul 15, 2017

evolution-cms#28

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants