ShareShortcuts

ShrinkToFit

Shrink a photo to fit your iDevice

outlander-2007
Bifurcar “ShrinkToFit”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que outlander-2007 reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
42K
Guardado
0
Acciones
44
Categoría
API
Versión
1.0
Idioma
EN

Shrink a photo to fit your iDevice

Novedades

Versión 1.0

First release

Historial de versiones
1.0 7 de abr. de 2022

First release

Qué hace

44 acciones
  1. If
  2. Set Variable
    Photo
  3. If
  4. Select Photos
  5. Set Variable
    Photo
  6. Get Dictionary Value
  7. If
  8. Text
  9. URL
    data:text/html,…
  10. Split Text
  11. Get Item from List
  12. Set Variable
    Screen Height
  13. Get Item from List
  14. Set Variable
    Screen Width
  15. If
  16. If
  17. List
  18. Choose from List
  19. If
  20. Text
  21. If
  22. Text
  23. If
  24. Text
  25. If
  26. Text
  27. If
  28. If
  29. Resize Image
  30. Set Variable
    Photo
  31. If
  32. Resize Image
  33. Set Variable
    Photo
  34. Crop Image
  35. Set Name
  36. Quick Look
  37. Convert Image
  38. Set Variable
    Photo
  39. Get Dictionary Value
  40. Set Variable
    Croppers
  41. If
  42. Choose from List
  43. Get Dictionary Value
  44. Set Variable
    Croppers

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/photos'
#define color lightblue
#define glyph picture


if ShortcutInput {
	@Photo = ShortcutInput
} else {
	selectPhotos()
	@Photo
}
const DictionaryValue = getValue({}, @Photo['Height'])

if !DictionaryValue {
	const URL = url("data:text/html,{}")
	const SplitText = splitText(URL)
	getListItem(SplitText, 0)
	@ScreenHeight
	getListItems(SplitText, 0, 0)
	@ScreenWidth
	if @ScreenWidth <= @Photo {
		if @ScreenHeight <= @Photo {
			const List = list("ShrinkToFit")
			const ChosenItem = chooseFromList(List, "The  selected image is larger than the screen. It will be adjusted to fit properly. Choose an option below: ")
			if ChosenItem == "Crop to fit" {
			} else {
			}
		} else {
		}
	} else {
	}
	if IfResult == "Resize" {
		if @Photo > @Photo {
			resizeImage(@Photo, "", @ScreenHeight)
			@Photo
		} else {
			resizeImage(@Photo, @ScreenWidth)
			@Photo
		}
	}
	const CroppedImage = cropImage(@Photo, @ScreenWidth, @ScreenHeight)
	const RenamedItem = setName(CroppedImage, "Press on the Share button and tap Save image.")
	quicklook(RenamedItem)
	convertImage(CroppedImage, "PNG")
	@Photo
}
@Croppers = nil[@Photo['Height']]

if @Croppers !contains "Models" {
	chooseFromList(@Croppers, "What type of device are you making icons for?")
	@Croppers = @Croppers[]
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de outlander-2007

Ver todo

También te puede gustar

Ver todo
Publicidad