Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
master-absenku-custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nurchamim
master-absenku-custom
Commits
35874013
Commit
35874013
authored
Feb 23, 2023
by
nurchamim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modul : revisi upload foto
status : selesai keterangan : fix compress image, size foto manjadi lebih kecil
parent
9bf80622
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
application/libraries/Uploadfile.php
+4
-4
No files found.
application/libraries/Uploadfile.php
View file @
35874013
...
...
@@ -82,11 +82,11 @@
if
(
$opt
[
'compress_image'
]
===
true
)
{
$cfg
[
'image_library'
]
=
'gd2'
;
$cfg
[
'source_image'
]
=
$
this
->
_ci
->
session
->
userdata
(
'id_company'
)
.
'/'
.
$
path
.
'/'
.
$fileData
[
'file_name'
];
$cfg
[
'source_image'
]
=
$path
.
'/'
.
$fileData
[
'file_name'
];
$cfg
[
'create_thumb'
]
=
FALSE
;
$cfg
[
'maintain_ratio'
]
=
TRUE
;
$cfg
[
'quality'
]
=
'70%'
;
$cfg
[
'
width'
]
=
120
0
;
$cfg
[
'
height'
]
=
48
0
;
$cfg
[
'new_image'
]
=
$path
.
'/'
.
$fileData
[
'file_name'
];
$this
->
_ci
->
load
->
library
(
'image_lib'
,
$cfg
);
$this
->
_ci
->
image_lib
->
resize
();
...
...
@@ -167,11 +167,11 @@
if
(
$opt
[
'compress_image'
]
===
true
)
{
$cfg
[
'image_library'
]
=
'gd2'
;
$cfg
[
'source_image'
]
=
$
this
->
_ci
->
session
->
userdata
(
'id_company'
)
.
'/'
.
$
path
.
'/'
.
$fileData
[
'file_name'
];
$cfg
[
'source_image'
]
=
$path
.
'/'
.
$fileData
[
'file_name'
];
$cfg
[
'create_thumb'
]
=
FALSE
;
$cfg
[
'maintain_ratio'
]
=
TRUE
;
$cfg
[
'quality'
]
=
'70%'
;
$cfg
[
'
width'
]
=
120
0
;
$cfg
[
'
height'
]
=
48
0
;
$cfg
[
'new_image'
]
=
$path
.
'/'
.
$fileData
[
'file_name'
];
$this
->
_ci
->
load
->
library
(
'image_lib'
,
$cfg
);
$this
->
_ci
->
image_lib
->
resize
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment