{"action":"closed","issue":{"url":"https://api.github.com/repos/citic/botNeumann/issues/7","labels_url":"https://api.github.com/repos/citic/botNeumann/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/citic/botNeumann/issues/7/comments","events_url":"https://api.github.com/repos/citic/botNeumann/issues/7/events","html_url":"https://github.com/citic/botNeumann/issues/7","id":61742283,"number":7,"title":"Cropping instead of clipping shelf_*.svg","user":{"login":"jeissonh","id":5830477,"avatar_url":"https://avatars.githubusercontent.com/u/5830477?v=3","gravatar_id":"","url":"https://api.github.com/users/jeissonh","html_url":"https://github.com/jeissonh","followers_url":"https://api.github.com/users/jeissonh/followers","following_url":"https://api.github.com/users/jeissonh/following{/other_user}","gists_url":"https://api.github.com/users/jeissonh/gists{/gist_id}","starred_url":"https://api.github.com/users/jeissonh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeissonh/subscriptions","organizations_url":"https://api.github.com/users/jeissonh/orgs","repos_url":"https://api.github.com/users/jeissonh/repos","events_url":"https://api.github.com/users/jeissonh/events{/privacy}","received_events_url":"https://api.github.com/users/jeissonh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/citic/botNeumann/labels/thisweek","name":"thisweek","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"aph26","id":9001568,"avatar_url":"https://avatars.githubusercontent.com/u/9001568?v=3","gravatar_id":"","url":"https://api.github.com/users/aph26","html_url":"https://github.com/aph26","followers_url":"https://api.github.com/users/aph26/followers","following_url":"https://api.github.com/users/aph26/following{/other_user}","gists_url":"https://api.github.com/users/aph26/gists{/gist_id}","starred_url":"https://api.github.com/users/aph26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aph26/subscriptions","organizations_url":"https://api.github.com/users/aph26/orgs","repos_url":"https://api.github.com/users/aph26/repos","events_url":"https://api.github.com/users/aph26/events{/privacy}","received_events_url":"https://api.github.com/users/aph26/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/citic/botNeumann/milestones/1","html_url":"https://github.com/citic/botNeumann/milestones/Complete%20display%20of%20segments","labels_url":"https://api.github.com/repos/citic/botNeumann/milestones/1/labels","id":1021858,"number":1,"title":"Complete display of segments","description":"The Unit Playing Scene has all its elements prepared before students press the 'Play' button","creator":{"login":"jeissonh","id":5830477,"avatar_url":"https://avatars.githubusercontent.com/u/5830477?v=3","gravatar_id":"","url":"https://api.github.com/users/jeissonh","html_url":"https://github.com/jeissonh","followers_url":"https://api.github.com/users/jeissonh/followers","following_url":"https://api.github.com/users/jeissonh/following{/other_user}","gists_url":"https://api.github.com/users/jeissonh/gists{/gist_id}","starred_url":"https://api.github.com/users/jeissonh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeissonh/subscriptions","organizations_url":"https://api.github.com/users/jeissonh/orgs","repos_url":"https://api.github.com/users/jeissonh/repos","events_url":"https://api.github.com/users/jeissonh/events{/privacy}","received_events_url":"https://api.github.com/users/jeissonh/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":11,"state":"open","created_at":"2015-03-15T04:19:06Z","updated_at":"2015-03-25T15:32:48Z","due_on":"2015-03-22T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-03-15T04:07:35Z","updated_at":"2015-03-25T15:32:48Z","closed_at":"2015-03-25T15:32:48Z","body":"Las imágenes shelf_left.svg, shelf_middle.svg y shelf_right.svg contienen todo el estante, pero clipped a un rectángulo visible. Para el software, escalar imágenes clipped requiere mucha memoria. Lo ideal es no hacer clipping, sino cropping. Cropping significa eliminar lo que está en la zona no visible.\r\nAunque haya pérdida de datos, es mejor para optimizar el manejo del gráfico cuando el juego corre. La imagen original, con el estante completo, continúa en el archivo .ai, la cual podríamos compartir por Dropbox o Google Drive.\r\n\r\nYo reconstruí un shelf_middle.svg utilizando rectángulos y líneas. No coincide con shelf_left.svg y shelf_right.svg, por lo que se ve una diferencia (en las capturas de pantalla o al correr el programa). El nuevo shelf_middle.svg que hagas, si quieres, puede ser más ancho que shelf_left.svg y shelf_right.svg. En teoría, no debe haber ahorro de memoria en proporción a su ancho. Si la quieres hacer más ancha, que no sea más de 1/4 del ancho global (1024). Yo sugiero dejarla del mismo ancho (el correspondiente a un dato de 1 byte).\r\n\r\nLas imágenes de las esquinas del estante (shelf_bottom_left, ...), no están siendo usadas por el juego. Pueda que sea mejor optimizar estas tres (shelf_left.svg, shelf_middle.svg y shelf_right.svg) para que generen un mosaico perfecto. Si se requiere un borde, yo lo puedo dibujar mediante software, o bien, tener un .svg con un único rectángulo que sólo sea el borde.\r\n\r\nArturo, indícamente si, además de las imágenes de los estantes, hay otras imágenes con clipping en el repositorio."}}