Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-native-geek-image-editor
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
react-native-geek-image-editor
Commits
9b9de9b0
Commit
9b9de9b0
authored
Mar 20, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updat
parent
b6db4694
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
RNGeekImageEditor.podspec
ios/RNGeekImageEditor.podspec
+7
-7
Utils.m
ios/Utils.m
+1
-1
No files found.
ios/RNGeekImageEditor.podspec
View file @
9b9de9b0
...
...
@@ -12,18 +12,18 @@ Pod::Spec.new do |s|
s
.
author
=
{
"author"
=>
"huanglu"
}
s
.
platform
=
:ios
,
"8.0"
s
.
source
=
{
:git
=>
"https://github.com/author/RNGeekImageEditor.git"
,
:tag
=>
"master"
}
s
.
source_files
=
"**/*.{h,m}"
s
.
resource_bundles
=
{
"YBImageBrowser"
=>
'YBImageBrowser/**/*.bundle'
,
"LFMediaEditingController"
=>
'LFMediaEditingController/**/*.bundle'
}
s
.
resource
=
"CheckView/**/*.{png, xib}"
#
s.source_files = "**/*.{h,m}"
#
s.resource_bundles = {
#
"YBImageBrowser" => 'YBImageBrowser/**/*.bundle',
#
"LFMediaEditingController" => 'LFMediaEditingController/**/*.bundle'
#
}
#
s.resource = "CheckView/**/*.{png, xib}"
s
.
requires_arc
=
true
s
.
dependency
"React"
s
.
dependency
"YYModel"
#
s.dependency "YYModel"
end
ios/Utils.m
View file @
9b9de9b0
...
...
@@ -59,7 +59,7 @@
//压缩图片至100k以下
+
(
NSData
*
)
imageData
:
(
UIImage
*
)
image
{
NSData
*
data
=
UIImageJPEGRepresentation
(
image
,
1
);
NSData
*
data
=
UIImageJPEGRepresentation
(
newImg
,
1
);
// if (data.length > 500 * 1024) {
if
(
data
.
length
>
1024
*
1024
)
{
//1M以及以上
data
=
UIImageJPEGRepresentation
(
image
,
0
.
1
);
...
...
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