Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saving images #28

Closed
Goodoh opened this issue Nov 18, 2013 · 2 comments
Closed

saving images #28

Goodoh opened this issue Nov 18, 2013 · 2 comments

Comments

@Goodoh
Copy link

Goodoh commented Nov 18, 2013

Hello I am a learner and I have got things sorted out except when saving the image after resizing and adding a text layer it always creates new folders that already exists.
At the moment I have this script.
$dirPath = 'images/pos1';
$fileName = 'image.jpg';
$backgroundColor = 'ffffff';
$imageQuality = 95;
$layer->save($dirPath,$fileName,$backgroundColor,$imageQuality);
exit;
I already have the folder images and in there is a folder pos1.
I have tried under $fileName as I had$createFolders = true;
It says that it will create folders if they don't exists.
The folders exists and it creates them again. I have tried $createFolders=null; but got no where.
As you can see,by the above script, I have taken it out but still it creates the folders.
I want to put multiple images in the folders images/pos1.
I can not seem to find any information on that.
I have changed the folder names and the file name, from what they really are, but that is not important.
Thanks for your help in advance
Goodoh

@Goodoh
Copy link
Author

Goodoh commented Nov 23, 2013

Goodoh here,
I am a learner and I have found the problem with the creation of folders as it was entirely my fault as was my previous issue. Not paying enough attention to exactly what is said and what I type. This issue was to do with in the name of the folder where I had - instead of _. I am sorry for taking your time and concern, and I have to get used to checking thoroughly such things. I am learning and again sorry for the inconvenience to you. And all is
Goodoh

@Sybio
Copy link
Owner

Sybio commented Nov 24, 2013

No problem I close issue

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

No branches or pull requests

2 participants