Diễn Đàn GMS Việt Nam
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.

You are not connected. Please login or register

Hướng dẫn : Nén & Giải nén file artwork cho iOS 5.1.1

Go down  Thông điệp [Trang 1 trong tổng số 1 trang]

Designer

Designer
Designer
Designer

Hướng dẫn : Nén / Giải nén file artwork cho iOS 5.1.1

[color=#000000]Mặt bằng chung hiện nay hầu hết mọi người đều xài iOS 5.1.1 nên sau khi tổng hợp từ các Topic giải nén artwork ,viết bài hướng dẫn chi tiết nén / giải nén file artwork cho duy nhất iOS 5.1.1 ( iPhone 4/4S và cả 3GS đều giống script ).

Lưu ý :
- Topic
chỉ giải đáp những vấn đề liên quan đến giải nén - nén file artwork. Những vấn đề nhờ nén giúp xin vui lòng qua các Topic khác của mình. Mỗi Topic đều có 1 vấn đề liên quan.
- Khi post bài hỏi đáp, báo lỗi artwork vui lòng
up kèm theo hình để mình dễ giúp đỡ
- Topic này mình mở để tạo điều kiện thêm cho anh em muốn nghiên cứu về artwork, ai không làm được vẫn có thể yêu cầu ở các Topic liên quan
[B]Anh em chỉ cần làm theo thứ tự y như mình hướng dẫn chắc chắn sẽ thành công 100%.


Giải nén file artwork để làm gì ?
- Để thay đổi một số file hệ thống không dùng Winterboard...

Những file hệ thống đó bao gồm những file nào ?
- Theo như mình đã xử lý qua và biết đường gồm có 1 số file sau : cột sóng, wifi, edge, 3g, khóa, khóa xoay, % pin, pin, location...thanh status bar, button, activity ( cái hình tròn xoay khi vô web, download app hiện trên statusbar hay trình duyệt ), Popup, Navigation Bar...và 1 số cái Bar khác...

Các bạn có thể xem sơ qua hình sau :
[URL="http://farm9.staticflickr.com/8154/7472598946_57d89bbd99.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL][URL="http://farm9.staticflickr.com/8154/7472599216_89f0cab2b2.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]

[URL="http://farm9.staticflickr.com/8143/7472597626_84b9b8044d.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL][URL="http://farm8.staticflickr.com/7130/7467561986_53bda75440.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]



Vào vấn đề chính thôi...

1/ Trước tiên Down Python 2.7.2 tại đây về cài đặt: (cài đặt xong trong ổ C sẽ có thư mục Python27)
LINK MEDIAFIRE ( Bản dùng cho Win 32 bit )
[You must be registered and logged in to see this link.]


LINK MEDIAFIRE ( Bản dùng cho Win 64 bit )
[You must be registered and logged in to see this link.]


LINK WEB
[You must be registered and logged in to see this link.]


chọn dòng Python 2.7.2 Windows Installer


2/ Sau đó tải Python Image Library về cài đặt lên thư mục mặc định của Python27 ( C:\Python27 ) :

[URL="http://heaveniphone.com/%3Cbr%20/%3E%3Cb%3E%3Ca%20href=%22http://www.mediafire.com/?oeetczn0v4wb07y%22%20target=%22_blank%22%3Ehttp://www.mediafire.com/?oeetczn0v4wb07y%3C/a%3E%3C/b%3E%3Cbr%20/%3E"]
[/URL][You must be registered and logged in to see this link.]



3/ Tải script giải nén iOS 5.1.1 dùng để nén/giải nén file .artwork: (sau khi tải xong rồi giải nén toàn bộ file, chép như trong hình vào C:\Python27)

[You must be registered and logged in to see this link.]



Click here to view the original image of 800x262px.
[URL="http://farm8.staticflickr.com/7280/7527578124_3cc65fd4ee_c.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]

4/ Tạo 2 thư mục trong ổ C đặt tên là :
- (C:\nguon) nơi copy file .artwork cần giải nén cho vào đây
- (C:\xuat ) nơi ảnh sẽ được giải nén ra - anh em sẽ thay đổi, xử lý ảnh file artwork của mình.

[URL="http://farm9.staticflickr.com/8005/7527577744_981df4816b.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]

Đường dẫn file artwork trong iphone:

iPhone 4/4s
\System\Library\FrameWorks\UIKit.framework\Shared@ 2x.artwork

iPhone 3GS
\System\Library\FrameWorks\UIKit.framework\Shared. artwork

[URL="http://farm8.staticflickr.com/7265/7527577254_026f314ec8.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]

5/ Giải nén file artwork

Start > RUN > CMD gõ :

iPhone 4/4s
Mã:
cd c:\Python27 (Enter)
Mã:
python iOS-artwork.py export -a \nguon\Shared@2x.artwork -d \xuat\ (Enter)
iPhone 3GS
Mã:
cd c:\Python27 (Enter)
Mã:
python iOS-artwork.py export -a \nguon\Shared.artwork -d \xuat\ (Enter)


[URL="http://farm9.staticflickr.com/8026/7527577004_5f7d1b4446.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]

6/ Vào thư mục xuat trong ổ C ta sẽ thấy 1176 file ảnh.png đối với 4/4S và 1032 file đối với 3GS

Các bạn có thể chỉnh sửa nhưng lưu ý 1 điều:

Lưu chính xác tên, Độ phân giải ảnh không được thay đổi
(tức là khi chưa edit ảnh là 40x40 thì khi save phải là 40x40)
Nếu các bạn thay đổi không đúng kích thước hoặc sai tên file thì khi giải nén sẽ không được. Python sẽ báo cho bạn biết trên màn hình CMD, file nào không đúng kích thước và kích thước mặc định sẽ là bao nhiêu..

7/ Sau khi chỉnh sửa ảnh xong ta sẽ nén lại các file ảnh thành file.artwork

iPhone 4/4S
Mã:
python iOS-artwork.py create -a \nguon\Shared@2x.artwork -d \xuat\ -c \Shared@2x.artwork (Enter)


iPhone 3GS
Mã:
python iOS-artwork.py create -a \nguon\Shared.artwork -d \xuat\ -c \Shared.artwork (Enter)


[URL="http://farm8.staticflickr.com/7267/7527576496_53e7756e3d.jpg"][You must be registered and logged in to see this image.]Click this bar to view the full image.[You must be registered and logged in to see this image.][/URL]

File artwork theo lệnh trên sẽ xuất ra ngoài ổ C:\

Chú ý :
1 số trường hợp ổ C các bác vì lý do nào đó không cho xuất ra ổ C và báo lỗi trên CMD error...., python.py LINE ..., iOS-artwork.py LINE .... v.v.... Các bạn tạo thêm 1 folder trong ổ C để cho file nén lại xuất ra, ví dụ tên duy ( C:\duy )

Các bạn gõ lệnh trên CMD như sau :

iPhone 4/4s
Mã:
python iOS-artwork.py create -a \nguon\Shared@2x.artwork -d \xuat\ -c \duy\Shared@2x.artwork (Enter)


iPhone 3GS
Mã:
python iOS-artwork.py create -a \nguon\Shared.artwork -d \xuat\ -c \duy\Shared.artwork (Enter)

8/File.artwork đã EDIT nó nằm trong ổ C hoặc thư mục cho bạn tạo, bây giờ chỉ việc Copy cho vào lại : \System\Library\FrameWorks\UIKit.framework\

[b]Vui lòng đọc kỹ hướng dẫn sử dụng trước khi muốn dùng.Chúc các bạn thành công..

ps :sưu tầm

Về Đầu Trang  Thông điệp [Trang 1 trong tổng số 1 trang]

Permissions in this forum:
Bạn không có quyền trả lời bài viết