En esta presentación se aborda el tema de la comunicación desde el enfoque del liderazgo.
Se estudian los siguientes temas:
- Proceso efectivo de transmisión de mensajes.
- Etapas de recepción de mensajes.
- La retroalimentación efectiva.
- Formas comunes de retroalimentación que no funcionan.
Equipada con un sistema de tinta a cuatro colores low-olor, la ColorPainter H3-104s resulta la opción más rápida para rotulistas con grandes volúmenes de trabajo manteniendo una alta calidad.
ColorPainter W64s y W54s son impresoras solventes de gran formato de alta velocidad y excelente relación calidad y rendimiento.
Incorporan tecnología avanzada con una mayor fiabilidad de impresión en alta resolución con una densidad de color consistente.
Se puede concluir que las habilidades comunicativas y la comunicación asertiva en diferentes contextos es importante ya que nos permite desenvolvernos de mejor manera en nuestro diario vivir en los diferentes ámbitos de nuestra vida de una forma eficaz y coherente teniendo así una vida social activa y armoniosa.
Better DITA Graphics for a Multi-Screen WorldJoe Pairman
Good visual communication is essential, yet graphics are often an afterthought in DITA implementations. We need a new approach to make them work well over an increasing range of screen sizes, devices, and contexts.
Graphics illustrate relationships, demonstrate subtle concepts, and build emotional connections with brands. But they have to look clear and attractive over many screen sizes and software tools. As our image libraries grow, we can't keep manually tweaking different versions for different outputs.
Image processing tools are smart enough to handle this automatically; we just need to set up the rules. But the key to success is information architecture: the same needs analysis, planning, and content type definitions that we'd apply to any structured content solution.
In this project we have implemented a tool to inpaint selected regions from an image. Inpainting refers to the art of restoring lost parts of image and reconstructing them based on the background information. The tool provides a user interface wherein the user can open an image for inpainting, select the parts
of the image that he wants to reconstruct. The tool would then automatically inpaint the selected area according to the background information. The image can
then be saved. The inpainting in based on the exemplar based approach. The basic aim of this approach is to find examples (i.e. patches) from the image and
replace the lost data with it. Applications of this technique include the restoration of old photographs and damaged film; removal of superimposed text like
dates, subtitles etc.; and the removal of entire objects from the image like microphones or wires in special effects.
En esta presentación se aborda el tema de la comunicación desde el enfoque del liderazgo.
Se estudian los siguientes temas:
- Proceso efectivo de transmisión de mensajes.
- Etapas de recepción de mensajes.
- La retroalimentación efectiva.
- Formas comunes de retroalimentación que no funcionan.
Equipada con un sistema de tinta a cuatro colores low-olor, la ColorPainter H3-104s resulta la opción más rápida para rotulistas con grandes volúmenes de trabajo manteniendo una alta calidad.
ColorPainter W64s y W54s son impresoras solventes de gran formato de alta velocidad y excelente relación calidad y rendimiento.
Incorporan tecnología avanzada con una mayor fiabilidad de impresión en alta resolución con una densidad de color consistente.
Se puede concluir que las habilidades comunicativas y la comunicación asertiva en diferentes contextos es importante ya que nos permite desenvolvernos de mejor manera en nuestro diario vivir en los diferentes ámbitos de nuestra vida de una forma eficaz y coherente teniendo así una vida social activa y armoniosa.
Better DITA Graphics for a Multi-Screen WorldJoe Pairman
Good visual communication is essential, yet graphics are often an afterthought in DITA implementations. We need a new approach to make them work well over an increasing range of screen sizes, devices, and contexts.
Graphics illustrate relationships, demonstrate subtle concepts, and build emotional connections with brands. But they have to look clear and attractive over many screen sizes and software tools. As our image libraries grow, we can't keep manually tweaking different versions for different outputs.
Image processing tools are smart enough to handle this automatically; we just need to set up the rules. But the key to success is information architecture: the same needs analysis, planning, and content type definitions that we'd apply to any structured content solution.
In this project we have implemented a tool to inpaint selected regions from an image. Inpainting refers to the art of restoring lost parts of image and reconstructing them based on the background information. The tool provides a user interface wherein the user can open an image for inpainting, select the parts
of the image that he wants to reconstruct. The tool would then automatically inpaint the selected area according to the background information. The image can
then be saved. The inpainting in based on the exemplar based approach. The basic aim of this approach is to find examples (i.e. patches) from the image and
replace the lost data with it. Applications of this technique include the restoration of old photographs and damaged film; removal of superimposed text like
dates, subtitles etc.; and the removal of entire objects from the image like microphones or wires in special effects.
How to Create Animation Using the AnimatedAlign Widget.pptxFlutter Agency
In this article, you will learn to create an animation using the AnimatedAlign widget in Flutter. Learn more about the AnimatedAlign widget & how to implement it in your application development.
Harnessing Artificial Intelligence in your Applications - Level 300Amazon Web Services
AWS offers a family of AI services that provide cloud-native Machine Learning and Deep Learning technologies allowing developers to build an entirely new generation of apps that can see, hear, speak, understand, and interact with the real world. In this session we take a look at Amazon Rekognition, Amazon Polly, and Amazon Lex.
Speakers:
Adam Larter, Developer Solutions Architect, Amazon Web Services
Alastair Cousins, Solutions Architect, Amazon Web Services
Databinding is a part of android-architecture components in an android jetpack. It is a support library and It is used to bind UI components in the layout to data resources in your app. In another word, we can say that Databinding allows you to write expressions that connect variables to the views in the layout.
The Mobile Vision API provides a framework for recognizing objects in photos and videos. The framework includes detectors, which locate and describe visual objects in images or video frames, and an event-driven API that tracks the position of those objects in video.
MobX is the new upcoming state management solution. This blog is all about how to create a simple React-Native app using MobX.
MobX is fast in speed than Redux, its easier to learn & requires less boilerplate code.
Here are some of its main concepts
Stores:
Stores create data sources. A store is basically an ES6 class. the state is automatically derived from a data source by MobX by using ES6 decorators.
1. The store can expose the observable field(s), to which an observer can react. 2. The store can additionally expose some derived observable fields too. Which are pure functions on observable fields? MobX calls them as computed fields. 3. The store can also change the values of observable fields via actions. Only in this way MobX can allow you to change state.
How to use geolocation in react native appsInnovationM
Geolocation will find your current location and Geocoding gives your address (like City Name, Street Name, etc) by Coordinates (Latitude and Longitude).
What is Geolocation?
The most famous and familiar location feature — Geolocation is the ability to track a device using GPS, cell phone towers, WiFi access points or a combination of these. Since devices area unit employed by people, geolocation uses positioning systems to trace associate degree individual’s whereabouts right down to latitude and great circle coordinates, or more practically, a physical address. Both mobile and desktop devices can use geolocation.
Geolocation is accustomed to confirm zone and actual positioning coordinates, like for chase life or shipment shipments.
As everyone knows, a lot of changes made after API level 26 for optimizing Android system’s performance, the battery uses and other system-level problems which I am writing below:
1- Changes in Service. 2- Changes in Broadcast Reciever. 3- Changes in Push Notification
Understanding of react fiber architectureInnovationM
React v16.0 was released with an update to react core algorithm. This new core architecture is named “Fiber”. Facebook has completely rewritten the internals of React from the ground-up while keeping the public API essentially unchanged, in simple terms it means only changing the engine of a running car. With this release, some new features are also added like Asynchronous Rendering, Portals, Error Boundaries, Fragments (i.e. return array of elements). Incremental rendering is the headline addition to React which adds the ability to split rendering work into chunks.
Automatic reference counting (arc) and memory management in swiftInnovationM
Memory management is a key factor when we developing apps. If a program is using a lot of memory it can affect badly on your device making apps run slowly or even cause crashes. So for that in swift, you can work with Automatic Reference Counting (ARC) to keep your apps memory usage minimal. This doesn’t mean you can forget about the memory in your app but it does take care of most things for you.
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...InnovationM
Nowadays, Firebase Crashlytics is a very important part of our projects to monitor crashes of our applications that may be an android or iOS application. For the time being it is an unbeatable tool to log your day to day crashes for each user of your application.
By default, every function has a property called prototype this property by default is empty and you can add properties and methods to it and when you create an object from this function. The object inherits its properties and methods.
With the introduction of React 16.8 in 2018, React team came up with a new concept of “Hooks”. In this blog we are going to tell the reason behind creating hooks and also how to use them in a React application.
Razorpay Payment Gateway Integration In iOS SwiftInnovationM
Razorpay is the fastest growing Payment Solution. Most of the developers prefer Razorpay as the Payment solution in India. It is robust and provides developer friendly API & SDK for Android, iOS etc.
Line Messaging API Integration with Spring-BootInnovationM
The Line Messaging API is to establish communication between Line ChatBot and your server. If you want to create a chatbot where line user can send message’s and your server will reply for those messages then Line Messaging API is the right choice for you.
ReactJS or more popularly known as React was developed in the year 2011 by Jordan Walke, a software engineer at Facebook. It was created to cater to the need of updating a particular section of the Facebook page without refreshing it.
Redux is a library which is used to maintain a state of the application at an application level, it reduces the complexity of managing different states of the components when the app is getting comparatively larger, it provides the privilege to maintain a state of different components efficiently.
Integration of Highcharts with React ( JavaScript library )InnovationM
Highcharts is a front-end javascript library which is made to design the charts on web pages. ReactJS is also a javascript library for UI design. Now If we need to create a chart in ReactJS, there is a good news that several libraries (like ReCharts, Victory, VX, React-JSX-Highcharts, React-VIS etc.) are available which can be used for this purpose.
Serialization & De-serialization in JavaInnovationM
When you create a class, you may create an object for that particular class and once we execute/terminate the program, the object is destroyed by itself (Garbage Collector thread).
Stream concept is introduced in java 1.8 and present in java.util.stream package.It is used to process the object from collection or any group of objects or data source.
How to Make Each Round of Testing Count?InnovationM
We are doing write thing, as we need to check and test all the buttons, textbox, text values, validations, etc. While doing all this we should not forget our audience. We maybe be thinking stuffs in technical way but other non-tech guy will also use this app or website. We have to make it friendlier for them too.
MVP is a design pattern for developers to write their code in more readable, maintainable and
scalable manner. In MVP, our code is divided into three parts named as Model, View, and Presenter rather than placing the whole code in one Activity.
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™UiPathCommunity
In questo evento online gratuito, organizzato dalla Community Italiana di UiPath, potrai esplorare le nuove funzionalità di Autopilot, il tool che integra l'Intelligenza Artificiale nei processi di sviluppo e utilizzo delle Automazioni.
📕 Vedremo insieme alcuni esempi dell'utilizzo di Autopilot in diversi tool della Suite UiPath:
Autopilot per Studio Web
Autopilot per Studio
Autopilot per Apps
Clipboard AI
GenAI applicata alla Document Understanding
👨🏫👨💻 Speakers:
Stefano Negro, UiPath MVPx3, RPA Tech Lead @ BSP Consultant
Flavio Martinelli, UiPath MVP 2023, Technical Account Manager @UiPath
Andrei Tasca, RPA Solutions Team Lead @NTT Data
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Monitoring Java Application Security with JDK Tools and JFR Events
Image Handling in iOS_InnovationM
1. | Build a Mobile Experience
Image Handling in iOS
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
www.innovationm.com
2. | Build a Mobile Experience
www.innovationm.com
Image Handling in iOS
When we use images in our application then we face different type of scenarios while
handling the image. Before we go into the scenarios / situations of image handling in
Application, let us understand the concept of UIImage and UIImageView.
Concept of UIImage and UIImageView (container)
UIImage - Bitmap with different formats Ex png and jpeg. Recommended format is png.
UIImageView – This is an iOS Widget that acts like a container for holding the image.
To hold the image, UIImageView is required.
When UIImage is shown in UIImageView, there is a property (Content Mode) of
UIImageView, that render the Image in UIImageView.
We mostly use three types of Content Mode property. These are:
Scale To Fill
Aspect Fit
Aspect Fill
How this Content Mode renders the image we can see by following examples
UIImage of size (100×150)
UIImageView of size (200×200)
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
3. | Build a Mobile Experience
www.innovationm.com
Different Content modes for placing Image in ImageView
1. Scale to Fill
In this case, content is scaled to fill in ImageView with distorted or same aspect ratio. If
the image aspect ratio is different than that of container then final image ratio when
fitted in the container will be different and hence the image is finally distorted.
(Aspect Ratio is Width / Height)
2. Aspect Fit
In this case, content is scaled to fit in ImageView (container) without changing the
aspect ratio of image. Remainder is transparent.
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
4. | Build a Mobile Experience
www.innovationm.com
3. Aspect Fill without Clipping
In this case, image is scaled to fill in ImageView. Aspect ratio of image is not changed.
4. Aspect Fill with Clipping
In this case, content is scaled to fill in ImageView the same way it happen in the above
case but then finally image is cropped to the exact size of the ImageView size.
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
5. | Build a Mobile Experience
www.innovationm.com
Calculating new width and height with maintaining aspect ratio
Image original width = 100 and height = 150
Container width = 200 and height = 200
x-ratio = Container width / Image original width = 200/100 = 2.0
y-ratio = Container height / Image original height = 200/ 150 = 1.33
Selected ratio = min (x-ratio, y-ratio) = 1.33
Final Image width = Image original width * Selected Ratio = 100 * 1.33 = 133
Final Image height = Image original height * Selected Ratio = 150 * 1.33 = 200
Final Image width x height = 133 x 200 (Original width x height of image was 100 x 150)
Showing Images coming from Server (Different Scenarios)
We can use Aspect Fit mode for all the scenarios. It will serve in every scenario if you
don’t want to distort image.
Scenario 1
Image width is lesser than Container width.
Image height is lesser than Container height
Image width = 100 and height = 150
UIImageView width = 200 and height = 200
Final Image width = 133 and height = 200 (Refer the
calculations above)
Image is scaled up to fit the container.
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
6. | Build a Mobile Experience
Scenario 2
Image width is greater than Container width.
Image height is lesser than Container height
Image width = 100 and height = 150
UIImageView width = 80 and height = 200
Final Image width = 80 and height = 122
Image is scaled down to fit the container.
Scenario 3
Image width is lesser than Container width.
Image height is greater than Container height.
Image width = 100 and height = 150
UIImageView width = 200 and height = 120
Final width = 80 and height = 120
Image is scaled down to fit the container.
Scenario 4
Image width is greater than Container width.
Image height is greater than Container height.
Image width = 100 and height = 150
UIImageView width = 80 and height = 100
Final width = 66 and height = 100
Image is scaled down to fit the container.
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
www.innovationm.com
7. | Build a Mobile Experience
Scenario 5 (Same Aspect Ratio of Image and
ImageView)
Image width is greater than Container width.
Image height is greater than Container height.
Image width = 100 and height = 150
UIImageView width = 80 and height = 120
Final width = 80 and height = 120
Image is scaled down to fit the container.
Scenario 6 (Same Aspect Ratio of Image and
ImageView)
Image width is lesser than Container width.
Image height is lesser than Container height.
Image width = 100 and height = 150
UIImageView width = 120 and height = 180
Final width = 120 and height = 180
Image is scaled up to fit the container.
How we change the image size and compress image file size.
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
www.innovationm.com
8. | Build a Mobile Experience
www.innovationm.com
Uploading Images to the Server (Different Scenarios)
Many times we have to upload images in an application from device (iPhone, iPad) to
the server. It could be a photo clicked from the camera or there was an old image that
we choose and upload from the application.
Before uploading we can do two things with the image:
1. Change the width and height of original image.
2. Compress the image to be of smaller file size.
Let us understand them.
1. Change the width and height of original image.
To resize the image, we have to configure the drawing environment for rendering into a
bitmap.
1# UIGraphicsBeginImageContextWithOptions() method is used to create the bitmapbased graphics context.
This method takes two parameters:
1. Size of image (changed size) and
2. Scale factor of device as parameter.
Scale factor for Normal Display = 1.0
Scale factor for Retina Display = 2.0
2# – (void) drawInRect:(CGRect)rect; method is used to draw the image in target
rectangle.
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
9. | Build a Mobile Experience
www.innovationm.com
3# UIGraphicsGetImageFromCurrentImageContext() method is used to get the resized
image from drawing environment.
4# UIGraphicsEndImageContext() method is used to clean up the bitmap drawing
environment and remove the graphics context from the top of the context stack.
Example:
Original source Image Size = (2448, 3264)
Original source image file size = 3.8 MB
After resizing image to size (1024,768):
Resized source Image Size = (1024,768)
Resized source image file size = 2.0 MB
Code Example:
- (UIImage *) imageByScalingToSize:(CGSize)targetSize forImage:(UIImage *)sourceImage
{
UIImage *generatedImage = nil;
UIGraphicsBeginImageContextWithOptions(targetSize,NO,2.0);
[sourceImage drawInRect:CGRectMake(0, 0,targetSize.width,targetSize.height)];
generatedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return generatedImage;
}
2. Compress the image to be of smaller file size.
We can compress the image file size by following method.
UIImageJPEGRepresentation() This method takes two parameter
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com
10. | Build a Mobile Experience
www.innovationm.com
1. UIImage object.
2. Compress ratio (It can be between 0.0 and 1.0)
This method will return NSData representation of image after compressing.
Example:
Original source Image Size = (2448, 3264)
Original source image file size = 3.8 MB
After compressing image file size by 0.5:
Resized source Image Size = (2448, 3264)
Resized source image file size = 534 KB
Code Example:
- (UIImage *) compressImagebyRatio:(float)compressRatio forImage:(UIImage *)sourceImage
{
UIImage *generatedImage = nil;
NSData *data = UIImageJPEGRepresentation(sourceImage,compressRatio);
generatedImage = [[UIImage alloc] initWithData:data];
return generatedImage;
}
Depending upon your requirement whether to reduce the size (width and height in
pixels) OR reduce the file size OR Both, you may apply the above.
Source: http://blogs.innovationm.com/image-handling-in-ios/
Corporate Office:
InnovationM Mobile Technologies
E-3 (Ground Floor), Sector-3, Noida 201301 (India)
t: +91 8447 227337 | e: info@innovationm.com