feat: reusable AI color match reference images

This commit is contained in:
zhoubinjia committed 2026-11-10 17:29:43 +08:00
1 parent 4f08104012
commit 78a4d6857a
12 files changed
+319 -51

No files matched your search

@@ -480,12 +480,22 @@ object GalleryManager {
fun getAiColorMatchFile(context: Context, photoId: String, version: Long): File =
File(getPhotoDir(context, photoId, create = true), "$AI_COLOR_MATCH_FILE_PREFIX$version.plut")
/** Deletes the photo's AI color match LUTs except [keepVersions]. */
/**
* Id of the [com.hinnka.mycamera.lut.ColorMatchReferenceStore] record a photo's AI color match
* was made from, stored next to its LUT.
*/
fun getAiColorMatchReferenceFile(context: Context, photoId: String, version: Long): File =
File(getPhotoDir(context, photoId, create = true), "$AI_COLOR_MATCH_FILE_PREFIX$version.ref")
/** Deletes the photo's AI color match LUTs (and their reference records) except [keepVersions]. */
fun deleteAiColorMatchFiles(context: Context, photoId: String, keepVersions: Set<Long>) {
getPhotoDir(context, photoId).listFiles()?.forEach { file ->
val version = file.name.removePrefix(AI_COLOR_MATCH_FILE_PREFIX).removeSuffix(".plut").toLongOrNull()
if (file.name.startsWith(AI_COLOR_MATCH_FILE_PREFIX) && version != null && version !in keepVersions) {
if (!file.delete()) PLog.w(TAG, "Cannot delete AI color match LUT: ${file.absolutePath}")
if (!file.name.startsWith(AI_COLOR_MATCH_FILE_PREFIX)) return@forEach
val version = file.name.removePrefix(AI_COLOR_MATCH_FILE_PREFIX)
.substringBeforeLast('.')
.toLongOrNull()
if (version != null && version !in keepVersions) {
if (!file.delete()) PLog.w(TAG, "Cannot delete AI color match file: ${file.absolutePath}")
}
}
}
@@ -0,0 +1,121 @@
package com.hinnka.mycamera.lut
import android.content.Context
import android.graphics.Bitmap
import android.net.Uri
import com.hinnka.mycamera.gallery.GalleryManager
import com.hinnka.mycamera.utils.PLog
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import java.io.File
import java.io.FileOutputStream
/**
* Reference images used by AI color match, kept so they can be reused on other photos.
*
* Every newly picked reference is copied (downscaled to [MAX_EDGE]) into the app's private
* directory as its own record; picking an image again adds another record. Records are listed
* newest first and can be deleted. Deleting a record never affects photos already matched with
* it, since each match is stored as that photo's own LUT ([PhotoColorMatch]).
*/
object ColorMatchReferenceStore {
private const val TAG = "ColorMatchReferenceStore"
private const val DIR = "color_match_references"
private const val EXTENSION = ".jpg"
private const val JPEG_QUALITY = 95
/** Longest edge stored; AI color match never reads the reference at a larger size. */
const val MAX_EDGE = 2048
data class Reference(val id: String, val file: File)
/** Where an AI color match takes its reference from. */
sealed interface Source {
/** A newly picked image; it becomes a new record when the match runs. */
data class NewImage(val uri: Uri) : Source
data class Saved(val reference: Reference) : Source
}
private val _references = MutableStateFlow<List<Reference>>(emptyList())
private val mutex = Mutex()
@Volatile
private var loaded = false
/** Saved references, newest first. Call [load] to populate it. */
val references: StateFlow<List<Reference>> = _references.asStateFlow()
suspend fun load(context: Context) {
if (loaded) return
mutex.withLock {
if (loaded) return
_references.value = withContext(Dispatchers.IO) { scan(context) }
loaded = true
}
}
/** Copies the image at [uri] into a new record, or returns null when it cannot be decoded. */
suspend fun add(context: Context, uri: Uri): Reference? = withContext(Dispatchers.IO) {
load(context)
val bitmap = GalleryManager.loadBitmap(context, uri, MAX_EDGE) ?: run {
PLog.e(TAG, "Failed to decode reference image: $uri")
return@withContext null
}
try {
mutex.withLock {
val id = newId(context)
val target = file(context, id)
val temp = File(target.parentFile, "${target.name}.tmp")
val written = FileOutputStream(temp).use { output ->
bitmap.compress(Bitmap.CompressFormat.JPEG, JPEG_QUALITY, output)
}
if (!written || !temp.renameTo(target)) {
temp.delete()
PLog.e(TAG, "Failed to save reference image $id")
return@withLock null
}
Reference(id, target).also { reference ->
_references.value = listOf(reference) + _references.value
}
}
} finally {
bitmap.recycle()
}
}
suspend fun delete(context: Context, id: String) = withContext(Dispatchers.IO) {
mutex.withLock {
val file = file(context, id)
if (file.exists() && !file.delete()) {
PLog.w(TAG, "Cannot delete reference image: ${file.absolutePath}")
return@withLock
}
_references.value = _references.value.filterNot { it.id == id }
}
}
private fun scan(context: Context): List<Reference> =
dir(context).listFiles { file -> file.isFile && file.name.endsWith(EXTENSION) }
.orEmpty()
.mapNotNull { file ->
val id = file.name.removeSuffix(EXTENSION)
id.toLongOrNull()?.let { Reference(id, file) }
}
.sortedByDescending { it.id.toLong() }
/** Ids are creation timestamps, so they also give the list order. */
private fun newId(context: Context): String {
var id = System.currentTimeMillis()
while (file(context, id.toString()).exists()) id++
return id.toString()
}
private fun dir(context: Context): File = File(context.filesDir, DIR).apply { mkdirs() }
private fun file(context: Context, id: String): File = File(dir(context), "$id$EXTENSION")
}
@@ -1,5 +1,6 @@
package com.hinnka.mycamera.ui.gallery
import com.hinnka.mycamera.lut.ColorMatchReferenceStore
import com.hinnka.mycamera.lut.PhotoColorMatch
import android.net.Uri
import androidx.activity.result.PickVisualMediaRequest
@@ -23,10 +24,13 @@ import androidx.compose.foundation.gestures.detectDragGestures
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.IntSize
import kotlin.math.roundToInt
import androidx.compose.material.icons.filled.Add
import androidx.compose.material.icons.filled.Close
import androidx.compose.ui.zIndex
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.clickable
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
@@ -218,11 +222,14 @@ fun GalleryEditScreen(
ColorFmModelManager.observe(context)
}.collectAsState()
val isAiColorMatching by viewModel.isAiColorMatching.collectAsState()
var pendingColorMatchReference by remember { mutableStateOf<Uri?>(null) }
var pendingColorMatchReference by remember { mutableStateOf<ColorMatchReferenceStore.Source?>(null) }
var colorMatchReferenceToDelete by remember { mutableStateOf<ColorMatchReferenceStore.Reference?>(null) }
val colorMatchReferences by ColorMatchReferenceStore.references.collectAsState()
LaunchedEffect(Unit) { ColorMatchReferenceStore.load(context.applicationContext) }
val colorMatchReferenceLauncher = rememberLauncherForActivityResult(
contract = ActivityResultContracts.PickVisualMedia()
) { uri ->
pendingColorMatchReference = uri
if (uri != null) pendingColorMatchReference = ColorMatchReferenceStore.Source.NewImage(uri)
}
LaunchedEffect(depthModelState, pendingVirtualAperture) {
@@ -244,6 +251,9 @@ fun GalleryEditScreen(
val currentPhoto = currentPhotos.getOrNull(viewModel.currentPhotoIndex)
val editSourcePhoto = currentPhoto?.relatedPhoto ?: currentPhoto
val editLutId by viewModel.editLutId.collectAsState()
val activeColorMatchReferenceId by produceState<String?>(null, editLutId) {
value = viewModel.aiColorMatchReferenceId(editLutId)
}
val editLutRecipeParams by viewModel.editLutRecipeParams.collectAsState()
val editPhotoRecipeParams by viewModel.editPhotoRecipeParams.collectAsState()
val editLutConfig = viewModel.editLutConfig
@@ -1583,12 +1593,20 @@ fun GalleryEditScreen(
Spacer(modifier = Modifier.height(8.dp))
AiColorMatchRow(
active = PhotoColorMatch.isId(editLutId),
activeReferenceId = activeColorMatchReferenceId
.takeIf { PhotoColorMatch.isId(editLutId) },
references = colorMatchReferences,
enabled = !isAiColorMatching,
onPickReference = {
onAddReference = {
colorMatchReferenceLauncher.launch(
PickVisualMediaRequest(ActivityResultContracts.PickVisualMedia.ImageOnly)
)
},
onReuseReference = {
pendingColorMatchReference =
ColorMatchReferenceStore.Source.Saved(it)
},
onDeleteReference = { colorMatchReferenceToDelete = it },
onRemove = { viewModel.setEditLut(null) },
)
}
@@ -2184,6 +2202,26 @@ fun GalleryEditScreen(
onDismiss = { pendingColorMatchReference = null }
)
}
colorMatchReferenceToDelete?.let { reference ->
AlertDialog(
onDismissRequest = { colorMatchReferenceToDelete = null },
title = { Text(stringResource(R.string.ai_color_match_delete_reference_title)) },
text = { Text(stringResource(R.string.ai_color_match_delete_reference_message)) },
confirmButton = {
TextButton(onClick = {
viewModel.deleteColorMatchReference(reference.id)
colorMatchReferenceToDelete = null
}) {
Text(stringResource(R.string.delete))
}
},
dismissButton = {
TextButton(onClick = { colorMatchReferenceToDelete = null }) {
Text(stringResource(R.string.cancel))
}
}
)
}
if (isAiColorMatching) {
AlertDialog(
onDismissRequest = {},
@@ -2729,15 +2767,21 @@ private fun VideoEditPlayer(
/**
* AI color match for the photo being edited. The match is this photo's own filter (not in the
* filter library): when [active] it can be re-run with another reference or removed.
* filter library). Saved [references] can be tapped to match again; the add tile picks a new
* image, which becomes a new record. [activeReferenceId] marks the reference of the current match.
*/
@Composable
private fun AiColorMatchRow(
active: Boolean,
activeReferenceId: String?,
references: List<ColorMatchReferenceStore.Reference>,
enabled: Boolean,
onPickReference: () -> Unit,
onAddReference: () -> Unit,
onReuseReference: (ColorMatchReferenceStore.Reference) -> Unit,
onDeleteReference: (ColorMatchReferenceStore.Reference) -> Unit,
onRemove: () -> Unit,
) {
val tileShape = RoundedCornerShape(8.dp)
Column(
modifier = Modifier
.fillMaxWidth()
@@ -2745,24 +2789,84 @@ private fun AiColorMatchRow(
.background(Color.White.copy(alpha = if (active) 0.12f else 0.06f))
.padding(horizontal = 12.dp, vertical = 10.dp)
) {
Text(
text = stringResource(if (active) R.string.ai_color_match_active else R.string.ai_color_match_action),
color = if (active) AccentColor else Color.White,
style = MaterialTheme.typography.titleSmall
)
Row(verticalAlignment = Alignment.CenterVertically) {
Text(
text = stringResource(if (active) R.string.ai_color_match_active else R.string.ai_color_match_action),
color = if (active) AccentColor else Color.White,
style = MaterialTheme.typography.titleSmall,
modifier = Modifier.weight(1f)
)
if (active) {
TextButton(
onClick = onRemove,
enabled = enabled,
contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp),
modifier = Modifier.heightIn(min = 32.dp)
) {
Text(stringResource(R.string.ai_color_match_remove), color = Color.White)
}
}
}
Text(
text = stringResource(R.string.ai_color_match_hint),
color = Color.White.copy(alpha = 0.6f),
style = MaterialTheme.typography.bodySmall
)
Spacer(modifier = Modifier.height(8.dp))
Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
OutlinedButton(onClick = onPickReference, enabled = enabled) {
Text(stringResource(if (active) R.string.ai_color_match_change else R.string.ai_color_match_pick))
Spacer(modifier = Modifier.height(10.dp))
LazyRow(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
item(key = "add") {
Box(
modifier = Modifier
.size(64.dp)
.clip(tileShape)
.border(1.dp, Color.White.copy(alpha = 0.3f), tileShape)
.clickable(enabled = enabled, onClick = onAddReference),
contentAlignment = Alignment.Center
) {
Icon(
imageVector = Icons.Default.Add,
contentDescription = stringResource(R.string.ai_color_match_add),
tint = Color.White.copy(alpha = if (enabled) 0.8f else 0.3f)
)
}
}
if (active) {
TextButton(onClick = onRemove, enabled = enabled) {
Text(stringResource(R.string.ai_color_match_remove), color = Color.White)
items(references, key = { it.id }) { reference ->
val selected = reference.id == activeReferenceId
Box(modifier = Modifier.size(64.dp)) {
coil.compose.AsyncImage(
model = ImageRequest.Builder(LocalContext.current)
.data(reference.file)
.size(256)
.build(),
contentDescription = null,
contentScale = ContentScale.Crop,
modifier = Modifier
.fillMaxSize()
.clip(tileShape)
.border(
width = if (selected) 2.dp else 0.dp,
color = if (selected) AccentColor else Color.Transparent,
shape = tileShape
)
.clickable(enabled = enabled) { onReuseReference(reference) }
)
Box(
modifier = Modifier
.align(Alignment.TopEnd)
.padding(3.dp)
.size(18.dp)
.clip(CircleShape)
.background(Color.Black.copy(alpha = 0.6f))
.clickable(enabled = enabled) { onDeleteReference(reference) },
contentAlignment = Alignment.Center
) {
Icon(
imageVector = Icons.Default.Close,
contentDescription = stringResource(R.string.delete),
tint = Color.White,
modifier = Modifier.size(12.dp)
)
}
}
}
}
@@ -1,5 +1,6 @@
package com.hinnka.mycamera.viewmodel
import com.hinnka.mycamera.lut.ColorMatchReferenceStore
import com.hinnka.mycamera.lut.PhotoColorMatch
import android.app.Application
import android.content.Context
@@ -2477,11 +2478,13 @@ class GalleryViewModel(application: Application) : AndroidViewModel(application)
val isAiColorMatching = _isAiColorMatching.asStateFlow()
/**
* Matches the photo's colors to [referenceUri] with [com.hinnka.mycamera.ml.AiColorMatcher] and
* selects the result as this photo's filter. The LUT belongs to the photo only
* ([PhotoColorMatch]); it is stored in the photo's directory, not in the filter library.
* Matches the photo's colors to the reference of [source] with
* [com.hinnka.mycamera.ml.AiColorMatcher] and selects the result as this photo's filter. A newly
* picked image is first saved as a [ColorMatchReferenceStore] record so it can be reused. The
* LUT belongs to the photo only ([PhotoColorMatch]); it is stored in the photo's directory,
* with the id of the reference record it was made from, not in the filter library.
*/
fun applyAiColorMatch(photo: MediaData, referenceUri: Uri, onComplete: (Boolean) -> Unit) {
fun applyAiColorMatch(photo: MediaData, source: ColorMatchReferenceStore.Source, onComplete: (Boolean) -> Unit) {
if (_isAiColorMatching.value) return
_isAiColorMatching.value = true
viewModelScope.launch {
@@ -2493,8 +2496,14 @@ class GalleryViewModel(application: Application) : AndroidViewModel(application)
content = GalleryManager.loadOriginalBitmap(context, photo.id, AI_COLOR_MATCH_MAX_EDGE)
?: GalleryManager.loadBitmap(context, photo.uri, AI_COLOR_MATCH_MAX_EDGE)
?: error("Failed to load photo ${photo.id}")
reference = GalleryManager.loadBitmap(context, referenceUri, AI_COLOR_MATCH_MAX_EDGE)
?: error("Failed to load reference image")
val record = when (source) {
is ColorMatchReferenceStore.Source.NewImage ->
ColorMatchReferenceStore.add(context, source.uri)
?: error("Failed to save reference image")
is ColorMatchReferenceStore.Source.Saved -> source.reference
}
reference = GalleryManager.loadBitmap(context, Uri.fromFile(record.file), AI_COLOR_MATCH_MAX_EDGE)
?: error("Failed to load reference image ${record.id}")
val cube = com.hinnka.mycamera.ml.AiColorMatcher.createCube(context, content, reference, "AI color match")
val version = System.currentTimeMillis()
val file = GalleryManager.getAiColorMatchFile(context, photo.id, version)
@@ -2502,6 +2511,7 @@ class GalleryViewModel(application: Application) : AndroidViewModel(application)
com.hinnka.mycamera.lut.LutConverter.convertCubeToplut(cube.byteInputStream(), output)
}
check(converted) { "Failed to convert AI color match LUT" }
GalleryManager.getAiColorMatchReferenceFile(context, photo.id, version).writeText(record.id)
// Keep the match the saved metadata still refers to until the edit is saved.
val savedVersion = PhotoColorMatch.parse(GalleryManager.loadMetadata(context, photo.id)?.lutId)
?.takeIf { it.photoId == photo.id }?.version
@@ -2521,6 +2531,21 @@ class GalleryViewModel(application: Application) : AndroidViewModel(application)
}
}
/** Id of the reference record the AI color match [lutId] was made from, if known. */
suspend fun aiColorMatchReferenceId(lutId: String?): String? {
val ref = PhotoColorMatch.parse(lutId) ?: return null
return withContext(Dispatchers.IO) {
val file = GalleryManager.getAiColorMatchReferenceFile(getApplication(), ref.photoId, ref.version)
file.takeIf { it.isFile }?.readText()?.trim()?.takeIf { it.isNotEmpty() }
}
}
fun deleteColorMatchReference(id: String) {
viewModelScope.launch {
ColorMatchReferenceStore.delete(getApplication(), id)
}
}
fun setEditLut(lutId: String?) {
if (lutId != null && getCurrentPhoto()?.isVideo == true &&
(editVideoSourceProfile == null || selectableEditLuts.none { it.id == lutId })
@@ -1409,9 +1409,10 @@
<string name="model_download_source_mirror">HF 鏡像站(hf-mirror.com)</string>
<string name="ai_color_match_action">AI 仿色</string>
<string name="ai_color_match_active">AI 仿色(僅此張照片)</string>
<string name="ai_color_match_hint">參考一張圖片的色調為此張照片調色,結果只用於這張照片,不會加入濾鏡庫。</string>
<string name="ai_color_match_pick">選擇參考圖</string>
<string name="ai_color_match_change">更換參考圖</string>
<string name="ai_color_match_hint">參考一張圖片的色調為本張照片調色,點按已儲存的參考圖可重複使用。結果只用於這張照片,不會加入濾鏡庫。</string>
<string name="ai_color_match_add">新增參考圖</string>
<string name="ai_color_match_delete_reference_title">刪除參考圖?</string>
<string name="ai_color_match_delete_reference_message">將從清單中移除,已用它仿色的照片不受影響。</string>
<string name="ai_color_match_remove">移除</string>
<string name="ai_color_match_progress">正在仿色…</string>
<string name="ai_color_match_failed">AI 仿色失敗,請換一張參考圖再試。</string>
+4 -3
View File
@@ -1447,9 +1447,10 @@
<string name="model_download_source_mirror">Miroir HF (hf-mirror.com)</string>
<string name="ai_color_match_action">Correspondance des couleurs IA</string>
<string name="ai_color_match_active">Correspondance IA · cette photo uniquement</string>
<string name="ai_color_match_hint">Adapte les couleurs de cette photo à une image de référence. Le résultat s\'applique uniquement à cette photo et n\'est pas ajouté à la bibliothèque de filtres.</string>
<string name="ai_color_match_pick">Choisir une référence</string>
<string name="ai_color_match_change">Changer de référence</string>
<string name="ai_color_match_hint">Adapte les couleurs de cette photo à une image de référence. Touchez une référence enregistrée pour la réutiliser. Le résultat s\'applique uniquement à cette photo et n\'est pas ajouté à la bibliothèque de filtres.</string>
<string name="ai_color_match_add">Ajouter une référence</string>
<string name="ai_color_match_delete_reference_title">Supprimer la référence ?</string>
<string name="ai_color_match_delete_reference_message">Elle sera retirée de la liste. Les photos déjà harmonisées avec elle conservent leurs couleurs.</string>
<string name="ai_color_match_remove">Retirer</string>
<string name="ai_color_match_progress">Correspondance des couleurs…</string>
<string name="ai_color_match_failed">Échec de la correspondance des couleurs IA. Essayez une autre image de référence.</string>
+4 -3
View File
@@ -1302,9 +1302,10 @@
<string name="model_download_source_mirror">HF ミラー(hf-mirror.com)</string>
<string name="ai_color_match_action">AI カラーマッチ</string>
<string name="ai_color_match_active">AI カラーマッチ(この写真のみ)</string>
<string name="ai_color_match_hint">参照画像の色調にこの写真を合わせます。結果はこの写真だけに適用され、フィルターライブラリには追加されません。</string>
<string name="ai_color_match_pick">参照画像を選択</string>
<string name="ai_color_match_change">参照画像を変更</string>
<string name="ai_color_match_hint">参照画像の色調にこの写真を合わせます。保存済みの参照画像をタップすると再利用できます。結果はこの写真だけに適用され、フィルターライブラリには追加されません。</string>
<string name="ai_color_match_add">参照画像を追加</string>
<string name="ai_color_match_delete_reference_title">参照画像を削除しますか?</string>
<string name="ai_color_match_delete_reference_message">リストから削除されます。この画像で色合わせ済みの写真には影響しません。</string>
<string name="ai_color_match_remove">削除</string>
<string name="ai_color_match_progress">カラーマッチ中…</string>
<string name="ai_color_match_failed">AI カラーマッチに失敗しました。別の参照画像でお試しください。</string>
+4 -3
View File
@@ -1082,9 +1082,10 @@
<string name="model_download_source_mirror">มิเรอร์ HF (hf-mirror.com)</string>
<string name="ai_color_match_action">จับคู่สีด้วย AI</string>
<string name="ai_color_match_active">จับคู่สีด้วย AI · เฉพาะภาพนี้</string>
<string name="ai_color_match_hint">ปรับสีภาพนี้ให้เข้ากับภาพอ้างอิง ผลลัพธ์ใช้กับภาพนี้เท่านั้นและไม่ถูกเพิ่มลงในคลังฟิลเตอร์</string>
<string name="ai_color_match_pick">เลือกภาพอ้างอิง</string>
<string name="ai_color_match_change">เปลี่ยนภาพอ้างอิง</string>
<string name="ai_color_match_hint">ปรับสีของภาพนี้ให้ตรงกับภาพอ้างอิง แตะภาพอ้างอิงที่บันทึกไว้เพื่อใช้ซ้ำ ผลลัพธ์ใช้กับภาพนี้เท่านั้นและจะไม่ถูกเพิ่มลงในคลังฟิลเตอร์</string>
<string name="ai_color_match_add">เพิ่มภาพอ้างอิง</string>
<string name="ai_color_match_delete_reference_title">ลบภาพอ้างอิงหรือไม่?</string>
<string name="ai_color_match_delete_reference_message">จะถูกนำออกจากรายการ ภาพที่ปรับสีด้วยภาพนี้แล้วจะไม่ได้รับผลกระทบ</string>
<string name="ai_color_match_remove">ลบ</string>
<string name="ai_color_match_progress">กำลังจับคู่สี…</string>
<string name="ai_color_match_failed">จับคู่สีด้วย AI ไม่สำเร็จ ลองใช้ภาพอ้างอิงอื่น</string>
+4 -3
View File
@@ -1465,9 +1465,10 @@
<string name="model_download_source_mirror">HF 镜像站(hf-mirror.com)</string>
<string name="ai_color_match_action">AI 仿色</string>
<string name="ai_color_match_active">AI 仿色(仅本张照片)</string>
<string name="ai_color_match_hint">参考一张图片的色调为本张照片调色,结果只用于这张照片,不会加入滤镜库。</string>
<string name="ai_color_match_pick">选择参考图</string>
<string name="ai_color_match_change">更换参考图</string>
<string name="ai_color_match_hint">参考一张图片的色调为本张照片调色,点按已保存的参考图可重复使用。结果只用于这张照片,不会加入滤镜库。</string>
<string name="ai_color_match_add">添加参考图</string>
<string name="ai_color_match_delete_reference_title">删除参考图?</string>
<string name="ai_color_match_delete_reference_message">将从列表中移除,已用它仿色的照片不受影响。</string>
<string name="ai_color_match_remove">移除</string>
<string name="ai_color_match_progress">正在仿色…</string>
<string name="ai_color_match_failed">AI 仿色失败,请换一张参考图再试。</string>
+4 -3
View File
@@ -1403,9 +1403,10 @@
<string name="model_download_source_mirror">HF 鏡像站(hf-mirror.com)</string>
<string name="ai_color_match_action">AI 仿色</string>
<string name="ai_color_match_active">AI 仿色(僅此張照片)</string>
<string name="ai_color_match_hint">參考一張圖片的色調為此張照片調色,結果只用於這張照片,不會加入濾鏡庫。</string>
<string name="ai_color_match_pick">選擇參考圖</string>
<string name="ai_color_match_change">更換參考圖</string>
<string name="ai_color_match_hint">參考一張圖片的色調為本張照片調色,點按已儲存的參考圖可重複使用。結果只用於這張照片,不會加入濾鏡庫。</string>
<string name="ai_color_match_add">新增參考圖</string>
<string name="ai_color_match_delete_reference_title">刪除參考圖?</string>
<string name="ai_color_match_delete_reference_message">將從清單中移除,已用它仿色的照片不受影響。</string>
<string name="ai_color_match_remove">移除</string>
<string name="ai_color_match_progress">正在仿色…</string>
<string name="ai_color_match_failed">AI 仿色失敗,請換一張參考圖再試。</string>
+4 -3
View File
@@ -1409,9 +1409,10 @@
<string name="model_download_source_mirror">HF 鏡像站(hf-mirror.com)</string>
<string name="ai_color_match_action">AI 仿色</string>
<string name="ai_color_match_active">AI 仿色(僅此張照片)</string>
<string name="ai_color_match_hint">參考一張圖片的色調為此張照片調色,結果只用於這張照片,不會加入濾鏡庫。</string>
<string name="ai_color_match_pick">選擇參考圖</string>
<string name="ai_color_match_change">更換參考圖</string>
<string name="ai_color_match_hint">參考一張圖片的色調為本張照片調色,點按已儲存的參考圖可重複使用。結果只用於這張照片,不會加入濾鏡庫。</string>
<string name="ai_color_match_add">新增參考圖</string>
<string name="ai_color_match_delete_reference_title">刪除參考圖?</string>
<string name="ai_color_match_delete_reference_message">將從清單中移除,已用它仿色的照片不受影響。</string>
<string name="ai_color_match_remove">移除</string>
<string name="ai_color_match_progress">正在仿色…</string>
<string name="ai_color_match_failed">AI 仿色失敗,請換一張參考圖再試。</string>
+4 -3
View File
@@ -1490,9 +1490,10 @@
<string name="model_download_source_mirror">HF Mirror (hf-mirror.com)</string>
<string name="ai_color_match_action">AI color match</string>
<string name="ai_color_match_active">AI color match · this photo only</string>
<string name="ai_color_match_hint">Matches this photo\'s colors to a reference image. The result applies to this photo only and is not added to the filter library.</string>
<string name="ai_color_match_pick">Choose reference</string>
<string name="ai_color_match_change">Change reference</string>
<string name="ai_color_match_hint">Matches this photo\'s colors to a reference image. Tap a saved reference to reuse it. The result applies to this photo only and is not added to the filter library.</string>
<string name="ai_color_match_add">Add reference</string>
<string name="ai_color_match_delete_reference_title">Delete reference?</string>
<string name="ai_color_match_delete_reference_message">It will be removed from the list. Photos already matched with it keep their colors.</string>
<string name="ai_color_match_remove">Remove</string>
<string name="ai_color_match_progress">Matching colors…</string>
<string name="ai_color_match_failed">AI color match failed. Try another reference image.</string>